From: Jakub KiciƄski Date: Wed, 28 Dec 2011 00:53:22 +0000 (+0100) Subject: rt2x00usb: Zero USB padding before sending URB X-Git-Tag: v3.3-rc1~182^2~21^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d823a50e55fade0eda3708b00dbf49c5476c82e2;p=pandora-kernel.git rt2x00usb: Zero USB padding before sending URB When USB driver requires padding at the end of frame or URB it will report this need by increasing return value of get_tx_data_len callback. Common USB code uses that return value as desired URB length. Ensure that appropriate part of skb's tailroom exists and is zeroed. Signed-off-by: Jakub Kicinski Acked-by: Ivo van Doorn -- drivers/net/wireless/rt2x00/rt2x00usb.c | 16 +++++++++++++--- 1 files changed, 13 insertions(+), 3 deletions(-) Signed-off-by: Gertjan van Wingerde Signed-off-by: John W. Linville --- Reading git-diff-tree failed