diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-08-02 11:42:22 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-08-05 17:29:11 +0300 |
commit | a39284ae9d2ad09975c8ae33f1bd0f05fbfbf6ee (patch) | |
tree | c5fccfac26dd54e4296ed2f4bbe20907264a6b96 /net/tipc/socket.c | |
parent | 0171114210c7a3181f64118b0372b0eae2b57649 (diff) | |
download | linux-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