]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit83cb10f0ef3c96162be92339ccf8c0c9c9f2d13e
treee83f71fde279bc4ed80db945b55603f653aa08e1
parentb962e7312ae87006aed6f68ceee94bdf8db08338
inotify: fix length reporting and size checking

0db501bd0610ee0c0 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