]> git.baikalelectronics.ru Git - kernel.git/commit
sony-laptop: leak in error handling sony_nc_lid_resume_setup()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 1 Feb 2013 13:28:27 +0000 (16:28 +0300)
committerMatthew Garrett <matthew.garrett@nebula.com>
Wed, 27 Feb 2013 13:30:43 +0000 (08:30 -0500)
commit399ff661611b7219d278c9d40baf7449db4a7ab7
treeea9f8a7db5b603671e245e5e5b53334ef4e09afc
parent83220aef4d1be7cfc6b3caa9efd10fe901a93fbe
sony-laptop: leak in error handling sony_nc_lid_resume_setup()

We need to decrement "i" first because the current "i" was not allocated
succesfully.  Also we should go free the way down to zero to avoid a
leak.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
drivers/platform/x86/sony-laptop.c