Christian Engelmayer 2af9e74ae6 staging: rtl8712: fix potential leaks in r8712_set_key()
Fix potential leaks in the error paths of r8712_set_key(). In case the
algorithm specific checks fail, the function returns without enqueuing
or freeing the already allocated command and parameter structs. Use a
centralized exit path and make sure that all memory is freed correctly.
Detected by Coverity - CID 144370, 144371.

Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-24 01:57:14 +09:00
..
2014-05-16 23:43:56 +02:00
2014-04-05 15:37:40 -07:00
2014-05-22 23:27:17 +09:00
2014-04-08 13:27:40 +02:00
2014-05-22 23:27:17 +09:00
2014-04-29 19:23:22 +02:00
2014-04-16 12:28:47 -07:00
2014-05-07 16:28:52 -07:00
2014-05-21 18:57:25 +09:00
2014-04-24 12:53:38 -07:00
2014-04-18 16:40:08 -07:00
2014-05-17 15:49:40 -07:00
2014-05-22 23:27:17 +09:00
2014-04-03 14:05:02 -07:00
2014-04-16 14:07:51 -07:00
2014-05-13 11:21:01 +09:00
2014-05-22 04:26:23 +09:00