summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorBadari Pulavarty <pbadari@us.ibm.com>2007-08-10 22:00:44 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-08-12 00:47:40 +0200
commit6a648fa72161d1f6468dabd96c5d3c0db04f598a (patch)
treeb39d233a05c5373240c31b38ac23802438a7486b /drivers/video
parentx86_64: fix HPET init race (diff)
downloadlinux-6a648fa72161d1f6468dabd96c5d3c0db04f598a.tar.xz
linux-6a648fa72161d1f6468dabd96c5d3c0db04f598a.zip
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 'drivers/video')
0 files changed, 0 insertions, 0 deletions