]> git.baikalelectronics.ru Git - kernel.git/commit
tty: vcc: Fix error return code in vcc_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 27 Apr 2020 13:22:20 +0000 (13:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 May 2020 22:33:43 +0000 (15:33 -0700)
commit05e828fd0a1cf039e55dcd4448f2f7c17b4f30d6
tree38587d12142b8c3b50e475bb019a38db63d4111b
parent9a41c81c1c6a103f87ea5d1e18f66be23a77d0fc
tty: vcc: Fix error return code in vcc_probe()

Fix to return negative error code -ENOMEM from the error handling
case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/tty/vcc.c