p54spi: fix p54spi_upload_firmware
authorMax Filippov <jcmvbkbc@gmail.com>
Wed, 25 Mar 2009 12:45:01 +0000 (13:45 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 Apr 2009 20:54:26 +0000 (16:54 -0400)
commit5e3af1d2d3e6c0011b4c22514d39c73dcbc6674f
treee8b7e4d3ae5d70ab6ca7410566ae6e746a982527
parentf74d0f5cacb7023422098dd5c98e3ce06787ba56
p54spi: fix p54spi_upload_firmware

Instead of firmware itself p54_upload_firmware was sending to the device
content of struct firmware and the following random garbage.

Notice '&' before priv->firmware->data at p54spi_spi_write.
But simple removing of '&' sign triggered BUG_ON at dma_cache_maint.
Thus kmemdup - kfree workaround.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Christian Lamparter <chunkeey@web.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/p54/p54spi.c