commit | 34ec83f4c1dc0d6bf4b056f89841706907a06255 | [log] [tgz] |
---|---|---|
author | Devendra Naga <devendra.aaru@gmail.com> | Thu Oct 25 02:11:51 2012 -0400 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Oct 26 09:36:06 2012 -0700 |
tree | 0f5b084b6e11901ae8d2b49cebb1002dfd731e67 | |
parent | db9d1f6dd2601aee860304ffc1023a7d5709f314 [diff] |
staging: slicoss: fix a leak when kzalloc fail slic_card_locate does a kzalloc of physcard, and if it fails, in my previous patch i returned -ENOMEM, but left the driver leak the memory if card_hostid == SLIC_HOSTID_DEFAULT, fix this memory leak if the above condition is true Signed-off-by: Devendra Naga <devendra.aaru@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>