]> bbs.cooldavid.org Git - net-next-2.6.git/commit
NET: wimax, fix use after free
authorJiri Slaby <jslaby@suse.cz>
Sun, 10 Oct 2010 23:26:58 +0000 (23:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Oct 2010 18:05:43 +0000 (11:05 -0700)
commit0aa7deadffd8b596983a3abe29a218b4c5f43301
tree0f741572d7f370e17bd3e504a879b57a637b74e4
parentec622ab072e95cf96e78ab4d39d4eea874518c80
NET: wimax, fix use after free

Stanse found that i2400m_rx frees skb, but still uses skb->len even
though it has skb_len defined. So use skb_len properly in the code.

And also define it unsinged int rather than size_t to solve
compilation warnings.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
Cc: linux-wimax@intel.com
Acked-by: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wimax/i2400m/rx.c