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:24:42 +0000 (18:24 -0600)
commit9767a2421ad0f125bda9a8a1bed0c76bece8125c
treec415b897f11dfdabb190be081df9cfa7749f4147
parentae2bac5c25d3f073d307338d9a84a1fe454c283b
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