staging: wlan-ng: Checking a kmemdup() call in prism2sta_inf_hostscanresults()

From: Markus Elfring
Date: Fri Oct 11 2019 - 11:33:33 EST


Hello,

I have tried another script for the semantic patch language out.
This source code analysis approach points out that the implementation
of the function âprism2sta_inf_hostscanresultsâ contains still
an unchecked call of the function âkmemdupâ.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/staging/wlan-ng/prism2sta.c?id=26a7ae2949a86e1b74e2485d725efb528e2a81bb#n1086
https://elixir.bootlin.com/linux/v5.4-rc2/source/drivers/staging/wlan-ng/prism2sta.c#L1086

How do you think about to improve it?

Regards,
Markus