aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorVitaly Mayatskikh <[email protected]>2009-04-30 15:08:18 -0700
committerLinus Torvalds <[email protected]>2009-05-02 15:36:09 -0700
commit0816178638c15ce5472d39d771a96860dff4141a (patch)
tree9db0c3d2192286e818e6f6827fda3602b7d5a466 /net/lapb/lapb_in.c
parentb827e496c893de0c0f142abfaeb8730a2fd6b37f (diff)
pagemap: require aligned-length, non-null reads of /proc/pid/pagemap
The intention of commit aae8679b0ebcaa92f99c1c3cb0cd651594a43915 ("pagemap: fix bug in add_to_pagemap, require aligned-length reads of /proc/pid/pagemap") was to force reads of /proc/pid/pagemap to be a multiple of 8 bytes, but now it allows to read 0 bytes, which actually puts some data to user's buffer. According to POSIX, if count is zero, read() should return zero and has no other results. Signed-off-by: Vitaly Mayatskikh <[email protected]> Cc: Thomas Tuttle <[email protected]> Acked-by: Matt Mackall <[email protected]> Cc: Alexey Dobriyan <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions