Skip to content
Commit 297a1c34 authored by Raphaël Beamonte's avatar Raphaël Beamonte Committed by Greg Kroah-Hartman
Browse files

staging: wilc1000: replace MALLOC_WILC_BUFFER() macro to avoid possible memory leak



The MALLOC_WILC_BUFFER() macro was using a return statement, and didn't
take care of possible memory leaks and subsequent bugs when it was failing
after succeeding some allocations. This patch corrects this behavior.

Signed-off-by: default avatarRaphaël Beamonte <raphael.beamonte@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7a669e58
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment