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>
Wed, 23 Jan 2019 07:10:55 +0000 (08:10 +0100)
commitc30a3b5f1c52fb5d679b275165c3031aaab3b1a0
treeadf9c3be2ef54c0321eb9a7d8fc1bd05972035e7
parente89662f06a17ff0cfc2037d397683df04d95905f
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