Staging: bcm: fix possible memory leak of 'pstAddIndication' in CmHost.c and removes...
authorKevin McKinney <klmckinney1@gmail.com>
Fri, 2 Mar 2012 05:17:04 +0000 (00:17 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Mar 2012 00:36:55 +0000 (16:36 -0800)
commitcc55bb03ea17fcbeffb5ae3ec68ea1f8673bc0c8
treed426fa7bdd77b8a1722bd942bc8917c2a894c0f5
parent07b99cf55ccf3b058a1159642a92200a274aa839
Staging: bcm: fix possible memory leak of 'pstAddIndication' in CmHost.c and removes a whitespace

Memory is being allocated by kmalloc and stored in
variable pstAddIndication.  However, this memory is
not being freed in all cases. Therefore, this patch
frees it on several exit paths. This patch also
removes a whitespace.

Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm/CmHost.c