From: Jan Kara Date: Tue, 28 Jan 2014 17:53:22 +0000 (+0100) Subject: fsnotify: Do not return merged event from fsnotify_add_notify_event() X-Git-Tag: v3.14-rc1~63^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83c0e1b442b488571f4fef4a91c2fe52eed6c705;p=pandora-kernel.git fsnotify: Do not return merged event from fsnotify_add_notify_event() The event returned from fsnotify_add_notify_event() cannot ever be used safely as the event may be freed by the time the function returns (after dropping notification_mutex). So change the prototype to just return whether the event was added or merged into some existing event. Reported-and-tested-by: Jiri Kosina Reported-and-tested-by: Dave Jones Signed-off-by: Jan Kara --- Reading git-diff-tree failed