diff options
author | Colin Ian King | 2015-04-07 23:06:46 +0100 |
---|---|---|
committer | Mark Brown | 2015-04-08 12:01:10 +0100 |
commit | dfb85ba1140ab649f6f0bf3e502ac37c0f69dbcb (patch) | |
tree | ed0ddba2eb9b89632c9afa9f17464b626d8725a8 /Kbuild | |
parent | c517d838eb7d07bbe9507871fab3931deccff539 (diff) |
regulator: max8660: fix assignment of pdata to data that becomes dead
pdata is assigned to &pdata_of, however, pdata_of becomes dead (when it
goes out of scope) so pdata effectively becomes a dead pointer to the
out of scope object. This is detected by static analysis:
[drivers/regulator/max8660.c:411]: (error) Dead pointer usage.
Pointer 'pdata' is dead if it has been assigned '&pdata_of' at line 404.
Move declaration of pdata_of so it is always in scope.
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions