net: openvswitch: return an error instead of doing BUG_ON()
authorEelco Chaudron <echaudro@redhat.com>
Thu, 2 May 2019 20:12:38 +0000 (16:12 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 May 2019 05:36:36 +0000 (01:36 -0400)
commita734d1f4c2fc962ef4daa179e216df84a8ec5f84
treec491684ed2d58f4ca580e02da067d756f18e107c
parent3aa4c491c55dadd9d5c19f0a8443cb4a2ab41651
net: openvswitch: return an error instead of doing BUG_ON()

For all other error cases in queue_userspace_packet() the error is
returned, so it makes sense to do the same for these two error cases.

Reported-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
Acked-by: Flavio Leitner <fbl@sysclose.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/datapath.c