commit | 084f0a7472e27ddf8d8afffe8eae420e66e87e83 | [log] [tgz] |
---|---|---|
author | Nicholas Bellinger <nab@linux-iscsi.org> | Fri Feb 27 03:54:13 2015 -0800 |
committer | chrmhoffmann <chrmhoffmann@gmail.com> | Sun Apr 05 10:21:20 2020 +0200 |
tree | 10f49904736c8ee614dd84b78057c0eb953f3871 | |
parent | 9da055ad81c5f5c474974303b221aeff2c953a15 [diff] |
target/pscsi: Fix NULL pointer dereference in get_device_type commit 215a8fe4198f607f34ecdbc9969dae783d8b5a61 upstream. This patch fixes a NULL pointer dereference OOPs with pSCSI backends within target_core_stat.c code. The bug is caused by a configfs attr read if no pscsi_dev_virt->pdv_sd has been configured. Reported-by: Olaf Hering <olaf@aepfle.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org> Signed-off-by: Zefan Li <lizefan@huawei.com>