aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_transport_sas.c
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2017-04-25 16:15:30 +0000
committerJens Axboe <axboe@fb.com>2017-04-25 10:44:29 -0600
commit5136a4fd5832af12ec5e5961c52a27a524a0a9d9 (patch)
tree0797e62df77407cf16ff995ab1d2d2d008fd45a0 /drivers/scsi/scsi_transport_sas.c
parentvirtio_blk: Fix English description of VIRTIO_BLK_SCSI (diff)
downloadlinux-dev-5136a4fd5832af12ec5e5961c52a27a524a0a9d9.tar.xz
linux-dev-5136a4fd5832af12ec5e5961c52a27a524a0a9d9.zip
lightnvm: fix possible memory leak in pblk_bb_discovery()
'blks' is malloced in pblk_bb_discovery() and should be freed before leaving from the nvm_get_tgt_bb_tbl() error handling cases, otherwise it will cause memory leak. Also skip assign blks to rlun->bb_list when error. Fixes: a4bd217b4326 ("lightnvm: physical block device (pblk) target") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Reviewed-by: Javier González <javier@cnexlabs.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/scsi/scsi_transport_sas.c')
0 files changed, 0 insertions, 0 deletions