]> git.baikalelectronics.ru Git - kernel.git/commit
isdn: hisax: set error code on failure
authorPan Bian <bianpan2016@163.com>
Sun, 4 Dec 2016 10:43:31 +0000 (18:43 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Dec 2016 20:03:42 +0000 (15:03 -0500)
commit75ef3f04b7c6be819c84e6c92761e00742eafe35
treef72523e98bfd2ae3bf01591ee6bf6d29d1c49e75
parentfbf9144bccb9e9026bae19c4055cd419f369f167
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>
drivers/isdn/hisax/hfc4s8s_l1.c