USB: omninet: fix write_room
commitb4868343c4dde5315ffebc08de71ddffdd1460d8
authorJohan Hovold <jhovold@gmail.com>
Sun, 6 Nov 2011 18:06:21 +0000 (6 19:06 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Jan 2012 19:29:41 +0000 (12 11:29 -0800)
tree0c642099c16da84419443b9652da1e7b659ebfc7
parent945d49b38f4e3aa8a570b2fe51f179e7c2181b4d
USB: omninet: fix write_room

commit 694c6301e515bad574af74b6552134c4d9dcb334 upstream.

Fix regression introduced by commit 507ca9bc047666 ([PATCH] USB: add
ability for usb-serial drivers to determine if their write urb is
currently being used.) which inverted the logic in write_room so that it
returns zero when the write urb is actually free.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/omninet.c