target: fix regression with dev_link_magic in target_fabric_port_link
authorNicholas Bellinger <nab@linux-iscsi.org>
Fri, 25 Jan 2013 02:57:14 +0000 (21:57 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Feb 2013 00:27:07 +0000 (18:27 -0600)
commit1b62b8fa198079c0e2a829f38557fcae4cffa017
treeda16bb5de53f575b43578a91d5a6890f0d39729f
parent8121aecbe073a880758ab5464a305361dbcb7134
target: fix regression with dev_link_magic in target_fabric_port_link

This is to fix a regression that only affect the stable (not for the mainline)
that the stable commit fdf9d86 was incorrectly placed dev->dev_link_magic check
before the *dev assignment in target_fabric_port_link() due to fuzzy automatically
context adjustment during the back-porting.

Reported-by: Chris Boot <bootc@bootc.net>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: CAI Qian <caiqian@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/target/target_core_fabric_configfs.c