diff options
| author | Badari Pulavarty <[email protected]> | 2007-08-10 13:00:44 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-08-11 15:47:40 -0700 |
| commit | 6a648fa72161d1f6468dabd96c5d3c0db04f598a (patch) | |
| tree | b39d233a05c5373240c31b38ac23802438a7486b /scripts | |
| parent | b291aa7a6564e859af144e1bd14ffa463519b198 (diff) | |
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 <[email protected]>
Acked-by: Joe Jin <[email protected]>
Acked-by: Zach Brown <[email protected]>
Cc: gurudas pai <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions