qlogic: check kstrtoul() for errors
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 12 Jul 2018 12:23:45 +0000 (15:23 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 14 Jul 2018 01:28:58 +0000 (18:28 -0700)
commit5fc853cc01c68f84984ecc2d5fd777ecad78240f
tree1ccbda219df28b4d5b9f93eb81ce5e22aa62904b
parentc3086637b0d7dbee0925697f8dbee2bcf9637b9f
qlogic: check kstrtoul() for errors

We accidentally left out the error handling for kstrtoul().

Fixes: a520030e326a ("qlcnic: Implement flash sysfs callback for 83xx adapter")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c