diff options
| author | Gustavo A. R. Silva <[email protected]> | 2017-11-14 20:26:16 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-11-15 05:16:07 +0000 |
| commit | b74912a2fdae9aadd20da502644aa8848c861954 (patch) | |
| tree | 140da6bfc4a9c7a811e20ece6f08131cc04c92c9 /drivers/tty/serial/sccnxp.c | |
| parent | Merge branch 'netem-fix-compilation-on-32-bit' (diff) | |
| download | kernel-b74912a2fdae9aadd20da502644aa8848c861954.tar.gz kernel-b74912a2fdae9aadd20da502644aa8848c861954.zip | |
openvswitch: meter: fix NULL pointer dereference in ovs_meter_cmd_reply_start
It seems that the intention of the code is to null check the value
returned by function genlmsg_put. But the current code is null
checking the address of the pointer that holds the value returned
by genlmsg_put.
Fix this by properly null checking the value returned by function
genlmsg_put in order to avoid a pontential null pointer dereference.
Addresses-Coverity-ID: 1461561 ("Dereference before null check")
Addresses-Coverity-ID: 1461562 ("Dereference null return value")
Fixes: 96fbc13d7e77 ("openvswitch: Add meter infrastructure")
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/tty/serial/sccnxp.c')
0 files changed, 0 insertions, 0 deletions
