diff options
author | Pan Bian <bianpan2016@163.com> | 2016-12-03 13:25:45 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-05 19:27:33 +0100 |
commit | 4606c9e8c541f97034e53e644129376a6170b8c7 (patch) | |
tree | dadbc5b83a85d7202b93c1c2dbb849a344ba96dd /net | |
parent | net: usb: set error code when usb_alloc_urb fails (diff) | |
download | linux-4606c9e8c541f97034e53e644129376a6170b8c7.tar.xz linux-4606c9e8c541f97034e53e644129376a6170b8c7.zip |
atm: lanai: set error code when ioremap fails
In function lanai_dev_open(), when the call to ioremap() fails, the
value of return variable result is 0. 0 means no error in this context.
This patch fixes the bug, assigning "-ENOMEM" to result when ioremap()
returns a NULL pointer.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=188791
Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions