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

scsi: sg: add sg_remove_request in sg_common_write



hulk inclusion
category: bugfix
bugzilla: 34234
CVE: NA

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

If the dxfer_len is greater than 256M then the request is invalid,
it should call sg_remove_request in sg_common_write.

Fixes: f930c704 ("scsi: sg: only check for dxfer_len greater than 256M")
Signed-off-by: default avatarLi Bin <huawei.libin@huawei.com>
Acked-by: default avatarDouglas Gilbert <dgilbert@interlog.com>
Reviewed-by: default avatarHou Tao <houtao1@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent adb04b31
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment