From: Jes Sorensen Date: Tue, 1 Jul 2014 10:07:00 +0000 (+0200) Subject: staging: rtl8723au: Sanitize USB read/write functions X-Git-Tag: cleanup-for-v3.18~125^2~1241 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2786faa33bfc8d61b4fa45dd2e31664de796c837;p=pandora-kernel.git staging: rtl8723au: Sanitize USB read/write functions The original Realtek provided functions suffered badly from clutter to accommodate broken operating systems. Lets try this lean and clean version instead. v2: Do not use the stack for data passed to usb_control_msg(). This requires reintroducing the mutex used in the old function. In addition, get rid of the no longer used 'usb_vendor_req_buf'. Note that rtl8723au_writeN() remains unlocked, so it can be used for bulk block transfers without having to retake the mutex for every write(). Signed-off-by: Jes Sorensen Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed