qlogic: check kstrtoul() for errors
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 12 Jul 2018 12:23:45 +0000 (15:23 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:12:39 +0000 (13:12 +0200)
commitd793d5ba6b5f4bce4c3d7994064ada548d65fedb
tree6c61b366ce3e10e96052271a411c2f74cb649b58
parent4770fdc633650794717f5f1c2011a8c570e09cce
qlogic: check kstrtoul() for errors

[ Upstream commit 5fc853cc01c68f84984ecc2d5fd777ecad78240f ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c