diff options
author | Johannes Thumshirn | 2016-06-23 14:37:20 +0200 |
---|---|---|
committer | Martin K. Petersen | 2016-07-13 05:16:31 +0200 |
commit | 2a6a20ea7d894464ca6bd402058c1aadf796a48c (patch) | |
tree | 149a1250c52c19c843c9651413a94f6de53fa9aa /block/blk-timeout.c | |
parent | scsi: wd7000: print sector number as 64-bit (diff) | |
download | kernel-qcow2-linux-2a6a20ea7d894464ca6bd402058c1aadf796a48c.tar.gz kernel-qcow2-linux-2a6a20ea7d894464ca6bd402058c1aadf796a48c.tar.xz kernel-qcow2-linux-2a6a20ea7d894464ca6bd402058c1aadf796a48c.zip |
snic: Fix use-after-free in case of a dma mapping error
If there is a dma mapping error snic kfree()s buf right before printing
it. Change the order to not accidently trip on memory that's not owned
by us anymore.
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Acked-by: Narsimhulu Musini <nmusini@cisco.com>
Reviewed-by: Laurence Oberman <loberman@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'block/blk-timeout.c')
0 files changed, 0 insertions, 0 deletions