diff options
| -rw-r--r-- | fs/notify/inotify/inotify_fsnotify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/notify/inotify/inotify_fsnotify.c b/fs/notify/inotify/inotify_fsnotify.c index e87f012cbff7..7e8b131029f8 100644 --- a/fs/notify/inotify/inotify_fsnotify.c +++ b/fs/notify/inotify/inotify_fsnotify.c | |||
| @@ -89,7 +89,7 @@ int inotify_handle_event(struct fsnotify_group *group, | |||
| 89 | return 0; | 89 | return 0; |
| 90 | } | 90 | } |
| 91 | if (file_name) { | 91 | if (file_name) { |
| 92 | len = strlen(file_name->name); | 92 | len = file_name->len; |
| 93 | alloc_len += len + 1; | 93 | alloc_len += len + 1; |
| 94 | } | 94 | } |
| 95 | 95 | ||
