diff options
author | Pan Bian | 2016-12-04 11:43:31 +0100 |
---|---|---|
committer | David S. Miller | 2016-12-05 21:03:42 +0100 |
commit | 9a53682b340b97642793271ba095cc9531a7b649 (patch) | |
tree | f72523e98bfd2ae3bf01591ee6bf6d29d1c49e75 /drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c | |
parent | net: bnx2x: fix improper return value (diff) | |
download | kernel-qcow2-linux-9a53682b340b97642793271ba095cc9531a7b649.tar.gz kernel-qcow2-linux-9a53682b340b97642793271ba095cc9531a7b649.tar.xz kernel-qcow2-linux-9a53682b340b97642793271ba095cc9531a7b649.zip |
isdn: hisax: set error code on failure
In function hfc4s8s_probe(), the value of return variable err should be
negative on failures. However, when the call to request_region() returns
NULL, the value of err is 0. This patch fixes the bug, assigning
"-EBUSY" to err on the path that request_region() fails.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=188931
Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c')
0 files changed, 0 insertions, 0 deletions