]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
tcm_usb_gadget: Don't strip off nexus WWPN prefix
authorNicholas Bellinger <nab@linux-iscsi.org>
Fri, 11 Dec 2015 15:06:13 +0000 (16:06 +0100)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 21 Dec 2015 03:40:05 +0000 (19:40 -0800)
commita0841d447ccc5685852b560a7b0919f4011ec111
tree4ab9ad1380b01bec6dc1d6124880e6970671104b
parentd79d75b5c5182fd94225996db71e06f9cbc7faed
tcm_usb_gadget: Don't strip off nexus WWPN prefix

Avoid stripping off the 'naa.' I_T nexus prefix from configfs
attribute store input, so that user-space will get back what
it originaly wrote into ../usb_gadget/$WWPN/$TPGT/nexus.

Note the SCSI initiator WWPN is purely symbolic for UAS + BOT,
so it will not effect host side code.

Reported-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/usb/gadget/legacy/tcm_usb_gadget.c