From: Nicholas Bellinger Date: Fri, 27 Feb 2015 11:54:13 +0000 (-0800) Subject: target/pscsi: Fix NULL pointer dereference in get_device_type X-Git-Tag: omap-for-v4.1/fixes-rc1~291^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=215a8fe4198f607f34ecdbc9969dae783d8b5a61;p=pandora-kernel.git target/pscsi: Fix NULL pointer dereference in get_device_type 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 Cc: Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed