]> git.baikalelectronics.ru Git - kernel.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)
commit63d00155eca6ae586c4d1d0517e58099943ae146
tree4ab9ad1380b01bec6dc1d6124880e6970671104b
parent5f33e3f9a5e7b6ad202b62befe1001145e683576
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