diff options
| author | Dan Carpenter <[email protected]> | 2013-07-08 23:01:58 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2013-07-09 17:33:31 +0000 |
| commit | 27daabd9b6a157c34a6e7a7f509fa26866e6420f (patch) | |
| tree | 349a1b1641ac497a3c999e1524dd39812f93a6b4 /fs/btrfs/dev-replace.c | |
| parent | scsi_debug: fix do_device_access() with wrap around range (diff) | |
| download | kernel-27daabd9b6a157c34a6e7a7f509fa26866e6420f.tar.gz kernel-27daabd9b6a157c34a6e7a7f509fa26866e6420f.zip | |
lib/scatterlist: error handling in __sg_alloc_table()
I was reviewing code which I suspected might allocate a zero size SG
table. That will cause memory corruption. Also we can't return before
doing the memset or we could end up using uninitialized memory in the
cleanup path.
Signed-off-by: Dan Carpenter <[email protected]>
Cc: Akinobu Mita <[email protected]>
Cc: Imre Deak <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: Maxim Levitsky <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
