]> www.infradead.org Git - users/jedix/linux-maple.git/commit
be2iscsi: Format the MAC_ADDR with sysfs_format_mac.
authorJohn Soni Jose <sony.john-n@emulex.com>
Thu, 23 Aug 2012 09:02:08 +0000 (14:32 +0530)
committerJerry Snitselaar <jerry.snitselaar@oracle.com>
Thu, 30 Aug 2012 22:34:21 +0000 (15:34 -0700)
commit332bc4e6dda7c7f48803433af00d79b044c95b58
tree4c35e0e5b153fec9514693670bb636d49b398771
parenta54eabbd12fefe64235ed20035b0275b6c49538a
be2iscsi: Format the MAC_ADDR with sysfs_format_mac.

 The MAC_ADDR stored in driver private structure is of
 unsigned char data type but strlcpy parameters is of
 signed char data type. This conversion of data types
 lead to change in the value.This changed value is passed
 to the upper layer and junk characters were displayed
 when "iscsiadm -m iface" command was run.

 In case of iSCSI boot, since the the MAC_ADDR was coming
 junk the boot was also not working

 Patch submitted to upstream kernel

Signed-off-by: John Soni Jose <sony.john-n@emulex.com>
Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
drivers/scsi/be2iscsi/be_iscsi.c