From: Gertjan van Wingerde Date: Fri, 6 Jun 2008 20:54:28 +0000 (+0200) Subject: rt2x00: Fix double usage of skb->cb in USB RX path. X-Git-Tag: v2.6.27-rc1~969^2~324^2~67 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a26cbc650846b74dd7f46dd877fd30c472df14a1;p=pandora-kernel.git rt2x00: Fix double usage of skb->cb in USB RX path. It is not safe to use the skb->cb area for both the rxd and skb_frame_desc data at the same time, while they occupy an overlapping piece of memory. This can lead to hard to trace crashes as pointers within skb_frame_desc are pointing into nowhere, or the rxd data is overwritten with non-sense. Fix it by copying the rxd to a small buffer on the stack. Signed-off-by: Gertjan van Wingerde Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville --- Reading git-diff-tree failed