diff options
author | Selvan Mani <[email protected]> | 2012-11-07 06:03:37 -0700 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2012-11-23 14:32:54 +0100 |
commit | 3208795e612406df04a32b46eb5ea5fccfa51d69 (patch) | |
tree | 83ad3d3b6c1e0ede845623efdd838a11472f1e91 /tools/perf/util/trace-event-scripting.c | |
parent | a8c32a5c98943d370ea606a2e7dc04717eb92206 (diff) |
mtip32xx: fix potential crash on SEC_ERASE_UNIT
The mtip driver lifted this code from elsewhere and then added a special
handling check for SEC_ERASE_UNIT. If the caller tries to do a security
erase but passes no output data for the command then outbuf is not
allocated and the driver duly explodes.
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Alan Cox <[email protected]>
Signed-off-by: Selvan Mani <[email protected]>
Signed-off-by: Asai Thambi S P <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions