commit | 79b444fad8ab5f873940e47ae527299ae0c96183 | [log] [tgz] |
---|---|---|
author | Stepan Moskovchenko <stepanm@codeaurora.org> | Wed Oct 12 13:47:39 2011 -0700 |
committer | Stepan Moskovchenko <stepanm@codeaurora.org> | Mon Oct 17 12:18:15 2011 -0700 |
tree | 9b3e279bb931ad5edf4e3a9adf49e15a8b2bda61 | |
parent | f9f07c34c896edc474013dc6cdb34ba3164eb68b [diff] |
ks8851: Fix freed memory reference in probe failure If ks8851_probe fails, deregister the regulator devices, which are part of the ks structure, before freeing the network device rather than dereferencing a freed pointer. The regulator devices need to be deregistered before the network device is freed because the private pointer (ks) is part of the ndev structure. Change-Id: Id8e7b25e26dbae2c038f6f018931fc25efbf5cff Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>