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:50:58 +0000 (16:50 -0700)
commita09ee517a1239c96d357e2dd9facb3e71deadd9c
tree0c5d4eacee0bd3b8c70be8ecdf7fff8247847f0a
parentf6321a4042d444046c77a5667e13c630ff969c4f
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