summaryrefslogtreecommitdiff
path: root/fs/timerfd.c
diff options
context:
space:
mode:
authorBadari Pulavarty <pbadari@us.ibm.com>2007-08-11 00:00:44 +0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-08-12 02:47:40 +0400
commit6a648fa72161d1f6468dabd96c5d3c0db04f598a (patch)
treeb39d233a05c5373240c31b38ac23802438a7486b /fs/timerfd.c
parentb291aa7a6564e859af144e1bd14ffa463519b198 (diff)
downloadlinux-6a648fa72161d1f6468dabd96c5d3c0db04f598a.tar.xz
direct-io: fix error-path crashes
Need to initialize map_bh.b_state to zero. Otherwise, in case of a faulty user-buffer its possible to go into dio_zero_block() and submit a page by mistake - since it checks for buffer_new(). http://marc.info/?l=linux-kernel&m=118551339032528&w=2 akpm: Linus had a (better) patch to just do a kzalloc() in there, but it got lost. Probably this version is better for -stable anwyay. Signed-off-by: Badari Pulavarty <pbadari@us.ibm.com> Acked-by: Joe Jin <joe.jin@oracle.com> Acked-by: Zach Brown <zach.brown@oracle.com> Cc: gurudas pai <gurudas.pai@oracle.com> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/timerfd.c')
0 files changed, 0 insertions, 0 deletions