commit | 297a1c34da83459e3f7160e2b75127b8935ef688 | [log] [tgz] |
---|---|---|
author | Raphaël Beamonte <raphael.beamonte@gmail.com> | Tue Aug 18 23:14:50 2015 -0400 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sat Sep 12 18:24:28 2015 -0700 |
tree | e7ed6510b4487f6858cce9c072dbb36b25d14c3b | |
parent | 7a669e58615c8908cf15222a0ffe1042995cfcd9 [diff] |
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: Raphaël Beamonte <raphael.beamonte@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>