diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-05-05 22:50:19 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-07 12:15:33 -0700 |
commit | e4acf4274169fb6106d4ac854c87071b9764a00d (patch) | |
tree | 15be8d9d00472467adc4850bc77c49a457405d84 /drivers/dma/st_fdma.h | |
parent | net: mvpp2: cls: fix less than zero check on a u32 variable (diff) | |
download | linux-dev-e4acf4274169fb6106d4ac854c87071b9764a00d.tar.xz linux-dev-e4acf4274169fb6106d4ac854c87071b9764a00d.zip |
taprio: add null check on sched_nest to avoid potential null pointer dereference
The call to nla_nest_start_noflag can return a null pointer and currently
this is not being checked and this can lead to a null pointer dereference
when the null pointer sched_nest is passed to function nla_nest_end. Fix
this by adding in a null pointer check.
Addresses-Coverity: ("Dereference null return value")
Fixes: a3d43c0d56f1 ("taprio: Add support adding an admin schedule")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions