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)
commita107311d7fdf6b826f3737c4a90fd0e0046e7a3a
treeb82265c4789d82bdf40c0b90e2939137f7fe364a
parent5e264e2b532966bfcfe8869a3fccc9876ec2122c
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: 4e6759be28e4 ("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