]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - net/openvswitch/meter.c
openvswitch: Fix return value check in ovs_meter_cmd_features()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 14 Nov 2017 06:20:16 +0000 (06:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Nov 2017 13:02:08 +0000 (22:02 +0900)
commit8a860c2bcc84a8e4fbcabb928cd97e4c51b17d93
tree992ff276cd5f1a68d7e3b8a61dd8de4cd831feed
parent228aa0121c8897d97fd0864d4ee4851545f7ebac
openvswitch: Fix return value check in ovs_meter_cmd_features()

In case of error, the function ovs_meter_cmd_reply_start() returns
ERR_PTR() not NULL. The NULL test in the return value check should
be replaced with IS_ERR().

Fixes: 96fbc13d7e77 ("openvswitch: Add meter infrastructure")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/meter.c