]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: qrtr: Fix error pointer vs NULL bugs
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 26 Feb 2020 14:51:53 +0000 (17:51 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Feb 2020 04:52:31 +0000 (20:52 -0800)
commit9baeea50718fdd55c7ae4d61c15f2a71aef6e050
tree24c6cd55f8bac77983c362c20114fb88a5027e03
parent1ac7b090ec4618a339afa6d25ab4033c57b30a28
net: qrtr: Fix error pointer vs NULL bugs

The callers only expect NULL pointers, so returning an error pointer
will lead to an Oops.

Fixes: 0c2204a4ad71 ("net: qrtr: Migrate nameservice to kernel from userspace")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/qrtr/ns.c