Files
linux/drivers
Nicholas Bellinger 50911760bc target: Fix alua_access_state attribute OOPs for un-configured devices
commit f145377351 upstream.

This patch fixes a OOPs where an attempt to write to the per-device
alua_access_state configfs attribute at:

  /sys/kernel/config/target/core/$HBA/$DEV/alua/$TG_PT_GP/alua_access_state

results in an NULL pointer dereference when the backend device has not
yet been configured.

This patch adds an explicit check for DF_CONFIGURED, and fails with
-ENODEV to avoid this case.

Reported-by: Chris Boot <crb@tiger-computing.co.uk>
Reported-by: Philip Gaw <pgaw@darktech.org.uk>
Cc: Chris Boot <crb@tiger-computing.co.uk>
Cc: Philip Gaw <pgaw@darktech.org.uk>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-16 13:42:53 -07:00
..
2013-12-08 07:29:25 -08:00
2014-03-06 21:30:14 -08:00
2014-06-07 13:25:39 -07:00
2014-04-14 06:42:18 -07:00
2014-02-22 12:41:27 -08:00
2014-02-20 11:06:11 -08:00
2014-02-13 13:48:03 -08:00
2014-04-03 12:01:05 -07:00
2014-05-30 21:52:12 -07:00
2013-12-20 07:45:11 -08:00