[PATCH] fix NULL dereference in inotify_ignore
authorAmy Griffis <amy.griffis@hp.com>
Sat, 20 May 2006 22:00:07 +0000 (15:00 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 21 May 2006 19:59:18 +0000 (12:59 -0700)
commitd66fd908acc8ba88541ecc570d89b0243f947c5e
tree4367428c092231981230975b37cd1fbff3ec3155
parent66055a4e7334b05354c835123ff621c5f700e56a
[PATCH] fix NULL dereference in inotify_ignore

Don't reassign to watch.  If idr_find() returns NULL, then
put_inotify_watch() will choke.

Signed-off-by: Amy Griffis <amy.griffis@hp.com>
Cc: John McCutchan <john@johnmccutchan.com>
Cc: Robert Love <rlove@rlove.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/inotify.c