]> git.baikalelectronics.ru Git - kernel.git/commit
inotify: fix length reporting and size checking
authorEric Paris <eparis@redhat.com>
Fri, 28 Aug 2009 15:57:55 +0000 (11:57 -0400)
committerEric Paris <eparis@redhat.com>
Fri, 28 Aug 2009 15:57:55 +0000 (11:57 -0400)
commit4a82c31803856291d014f128f1a7569b17d8daf3
treee83f71fde279bc4ed80db945b55603f653aa08e1
parentb8c88c14a5a814ba1b078a894af91cde97db40f8
inotify: fix length reporting and size checking

7fb006d857de6ae06 introduced a regresion in that it now sends a nul
terminator but the length accounting when checking for space or
reporting to userspace did not take this into account.  This corrects
all of the rounding logic.

Signed-off-by: Eric Paris <eparis@redhat.com>
fs/notify/inotify/inotify_user.c