Commit a413a39f authored by Li Bin's avatar Li Bin Committed by Yang Yingliang
Browse files

scsi: sg: fix memory leak in sg_build_indirect



hulk inclusion
category: bugfix
bugzilla: 34236
CVE: NA

--------------------------------

Fix a memory leak that occurs when alloc_pages() succeeds several
times before failing. This condition is noticed when rem_sz > 0.

Signed-off-by: default avatarLi Bin <huawei.libin@huawei.com>
Reviewed-by: default avatarHou Tao <houtao1@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent a7c84438
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment