]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: fix firmware version when no firmware level has been provided by the VIOS...
authorDesnes Augusto Nunes do Rosario <desnesn@linux.vnet.ibm.com>
Thu, 1 Feb 2018 18:04:30 +0000 (16:04 -0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Feb 2018 19:57:33 +0000 (14:57 -0500)
commitfe5b621ea84e084e39c925ddd51e81c9c6329e6d
treeb82265c4789d82bdf40c0b90e2939137f7fe364a
parent52f2acf0635a4d657f605cfe621d717d59351dba
ibmvnic: fix firmware version when no firmware level has been provided by the VIOS server

Older versions of VIOS servers do not send the firmware level in the VPD
buffer for the ibmvnic driver. Thus, not only the current message is mis-
leading but the firmware version in the ethtool will be NULL. Therefore,
this patch fixes the firmware string and its warning.

Fixes: 14e3786fc435 ("ibmvnic: Feature implementation of VPD for the ibmvnic driver")
Signed-off-by: Desnes A. Nunes do Rosario <desnesn@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c