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: v3.2.69~84 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf21de36006d41407c179164387984374b846943;p=pandora-kernel.git 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 Signed-off-by: Nicholas Bellinger Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed