]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit9ef391bdc29f0570c2be578210e220d15ea7a453
tree38587d12142b8c3b50e475bb019a38db63d4111b
parent60da7d0bc7482a30817c73fdc8152123d19919f8
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