[PATCH] USB: Fix irda-usb use after use
authorEugene Teo <eugene.teo@eugeneteo.net>
Wed, 15 Mar 2006 22:57:19 +0000 (14:57 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Mar 2006 22:50:03 +0000 (14:50 -0800)
commitda81817fbd744ce70983f1d3c61841265003c7f4
tree6df199268afd7293c86bc06699db11644b5bddfd
parent09abfa8048de8e68eaa09eb07ac18f2d549dfe58
[PATCH] USB: Fix irda-usb use after use

Don't read from free'd memory after calling netif_rx().  docopy is used as
a boolean (0 and 1) so unsigned int is sufficient.

Coverity bug #928

Signed-off-by: Eugene Teo <eugene.teo@eugeneteo.net>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/irda/irda-usb.c