diff options
author | Navid Emamdoost <navid.emamdoost@gmail.com> | 2019-07-21 09:37:31 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-08-16 11:12:46 +0300 |
commit | 56dc57c705efe743de9bb13b48ea3ea771213190 (patch) | |
tree | 519206a27d23b352556db4d15f83ac3f5febd77e /drivers/hwmon | |
parent | f4cfdd46b3563ff33f167fd44b022e78981bcda8 (diff) | |
download | linux-56dc57c705efe743de9bb13b48ea3ea771213190.tar.xz |
allocate_flower_entry: should check for null deref
[ Upstream commit bb1320834b8a80c6ac2697ab418d066981ea08ba ]
allocate_flower_entry does not check for allocation success, but tries
to deref the result. I only moved the spin_lock under null check, because
the caller is checking allocation's status at line 652.
Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/hwmon')
0 files changed, 0 insertions, 0 deletions