]> git.baikalelectronics.ru Git - kernel.git/commit
target: Fix regression allowing unconfigured devices to fabric port link
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 31 Jan 2013 22:56:12 +0000 (14:56 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 31 Jan 2013 23:13:23 +0000 (15:13 -0800)
commitae0817bb4900258331c58d2a1d6da29806c9e105
treebb1f916cedbe04fff6cfb2b656fb4cbe6f50ea65
parentb7b9184763795a645ee07e94eeba8193d8d19ddb
target: Fix regression allowing unconfigured devices to fabric port link

This patch fixes a v3.8-rc1 regression bug where an unconfigured se_device
was incorrectly allowed to perform a fabric port-link.  This bug was
introduced in commit:

  commit 70af911ae42265fc320cca1acea0cbb36df7eab2
  Author: Christoph Hellwig <hch@infradead.org>
  Date:   Mon Oct 8 00:03:19 2012 -0400

      target: kill struct se_subsystem_dev

which ended up dropping the original se_subsystem_dev->se_dev_ptr check
preventing this from happening with pre commit 70af911a code.

Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_fabric_configfs.c