From: Larry Finger Date: Wed, 11 Jul 2012 19:37:28 +0000 (-0500) Subject: rtlwifi: rtl8192cu: Change buffer allocation for synchronous reads X-Git-Tag: v3.2.28~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fc6a970e371907943871c1b51ef5a064d0bd02d;p=pandora-kernel.git rtlwifi: rtl8192cu: Change buffer allocation for synchronous reads commit 3ce4d85b76010525adedcc2555fa164bf706a2f3 upstream. In commit a7959c1, the USB part of rtlwifi was switched to convert _usb_read_sync() to using a preallocated buffer rather than one that has been acquired using kmalloc. Although this routine is named as though it were synchronous, there seem to be simultaneous users, and the selection of the index to the data buffer is not multi-user safe. This situation is addressed by adding a new spinlock. The routine cannot sleep, thus a mutex is not allowed. Signed-off-by: Larry Finger Signed-off-by: John W. Linville Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed