summaryrefslogtreecommitdiff
path: root/net/tipc/socket.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2018-08-02 11:42:22 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-08-05 17:29:11 +0300
commita39284ae9d2ad09975c8ae33f1bd0f05fbfbf6ee (patch)
treec5fccfac26dd54e4296ed2f4bbe20907264a6b96 /net/tipc/socket.c
parent0171114210c7a3181f64118b0372b0eae2b57649 (diff)
downloadlinux-a39284ae9d2ad09975c8ae33f1bd0f05fbfbf6ee.tar.xz
misc: mic: SCIF Fix scif_get_new_port() error handling
There are only 2 callers of scif_get_new_port() and both appear to get the error handling wrong. Both treat zero returns as error, but it actually returns negative error codes and >= 0 on success. Fixes: e9089f43c9a7 ("misc: mic: SCIF open close bind and listen APIs") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/tipc/socket.c')
0 files changed, 0 insertions, 0 deletions