net: openvswitch: fix a NULL pointer dereference
authorKangjie Lu <kjlu@umn.edu>
Fri, 15 Mar 2019 04:20:16 +0000 (23:20 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 Mar 2019 18:35:58 +0000 (11:35 -0700)
commit6f19893b644a9454d85e593b5e90914e7a72b7dd
tree5a929c79029a9bc1158827051b8756bbcd0c7f5c
parent4477138fa0ae4e1b699786ef0600863ea6e6c61c
net: openvswitch: fix a NULL pointer dereference

upcall is dereferenced even when genlmsg_put fails. The fix
goto out to avoid the NULL pointer dereference in this case.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/datapath.c