]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sunrpc: handle ENOMEM in rpcb_getport_async
authorJ. Bruce Fields <bfields@redhat.com>
Thu, 20 Dec 2018 15:35:11 +0000 (10:35 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2019 20:09:56 +0000 (21:09 +0100)
commit3b640cc5153302502a7e2c319d902347817afb6e
tree78a0766abce2343cbcda0f3c7f85b307f3f226e9
parentc1014f1acf797e910d4b9f60a592c18a2aa9609d
sunrpc: handle ENOMEM in rpcb_getport_async

commit 81c88b18de1f11f70c97f28ced8d642c00bb3955 upstream.

If we ignore the error we'll hit a null dereference a little later.

Reported-by: syzbot+4b98281f2401ab849f4b@syzkaller.appspotmail.com
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/rpcb_clnt.c