linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Commit "rsi: fix memory leak in rsi_load_ta_instructions()" breaks things
@ 2015-07-24  7:01 Mike Looijmans
  2015-07-24  8:02 ` Kalle Valo
  2015-07-24  8:39 ` Alexey Khoroshilov
  0 siblings, 2 replies; 9+ messages in thread
From: Mike Looijmans @ 2015-07-24  7:01 UTC (permalink / raw)
  To: linux-wireless; +Cc: khoroshilov, kvalo

Regarding this commit:

https://lkml.org/lkml/2014/12/12/709

     rsi: fix memory leak in rsi_load_ta_instructions()

     Memory allocated by kmemdup() in rsi_load_ta_instructions() is leaked.
     But duplication of firmware data here is useless,
     so the patch removes kmemdup() at all.

     Found by Linux Driver Verification project (linuxtesting.org).

     Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
     Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

We use this driver for the Redpine Wifi chip on our "florida" board, and after 
this commit it stopped working. Symptom was that the "wlan0" device was not 
created at all. Reverting the commit makes it work again.

Apparently, the kmemdup action is needed for something. I suspect the DMA 
controller is still copying the firmware data before the method returned.

Having no experience with this part of the kernel, I wasn't able to come up 
with a more constructive solution than just reverting the patch.

Kind regards,
Mike Looijmans.


Kind regards,

Mike Looijmans
System Expert

TOPIC Embedded Products
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
Telefax: +31 (0) 499 33 69 70
E-mail: mike.looijmans@topicproducts.com
Website: www.topicproducts.com

Please consider the environment before printing this e-mail






^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-07-24 16:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-24  7:01 Commit "rsi: fix memory leak in rsi_load_ta_instructions()" breaks things Mike Looijmans
2015-07-24  8:02 ` Kalle Valo
2015-07-24  8:39 ` Alexey Khoroshilov
2015-07-24 11:02   ` Mike Looijmans
2015-07-24 11:35     ` Alexey Khoroshilov
2015-07-24 13:42       ` Mike Looijmans
2015-07-24 14:12         ` Kalle Valo
2015-07-24 16:26           ` Alexey Khoroshilov
2015-07-24 16:59             ` Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).