]> git.baikalelectronics.ru Git - kernel.git/commit
airo: copying wrong data in airo_get_aplist()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 18 Jun 2012 07:48:14 +0000 (10:48 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 19 Jun 2012 18:56:26 +0000 (14:56 -0400)
commitcb0102071ad443b8818dcdaec99b7344c084304f
treeb4498e7b597da942afc77a907655034f25f7e433
parent5da42ddcbe77060ac133f065f847796d5adb048f
airo: copying wrong data in airo_get_aplist()

"qual" used to be declared on the stack, but then in 287b86da11 ("airo:
reduce stack memory footprint") we made it dynamically allocated.
Unfortunately the memcpy() here was missed and it's still copying stack
memory instead of the data that we want.  In other words, "&qual" should
be "qual".

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/airo.c