datapath: Correctly set error code in queue_userspace_packets().
authorJesse Gross <jesse@nicira.com>
Mon, 19 Sep 2011 23:23:25 +0000 (16:23 -0700)
committerJesse Gross <jesse@nicira.com>
Mon, 19 Sep 2011 23:48:51 +0000 (16:48 -0700)
commit5721c788f25dda3be1b281331db262f6806ab35e
tree907f599c8477263a947e962700e40d6b0b17db6c
parentcca208bb634b0825f8d56fde4ec10a240a45e9c1
datapath: Correctly set error code in queue_userspace_packets().

In a few places in queue_userspace_packets() when we encounter an
error, we don't actually set the 'err' variable.  Although we
free the packets we don't correctly account for these packets as
being lost.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/datapath.c