Colin Ian King
e4acf42741
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>
2019-05-07 12:15:33 -07:00
..
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:21 -04:00
2017-12-13 13:18:46 -05:00
2017-10-12 22:13:20 -07:00
2017-12-13 13:18:46 -05:00
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:21 -04:00
2019-05-05 21:49:24 -07:00
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:21 -04:00
2019-05-05 21:49:24 -07:00
2019-04-27 17:07:21 -04:00
2019-05-05 21:49:24 -07:00
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:21 -04:00
2019-05-05 21:49:24 -07:00
2019-04-27 17:07:21 -04:00
2019-05-05 21:49:24 -07:00
2019-04-27 17:07:21 -04:00
2007-07-10 22:16:41 -07:00
2007-07-10 22:16:41 -07:00
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:21 -04:00
2019-05-05 21:49:24 -07:00
2014-10-06 18:02:32 -04:00
2011-01-19 23:31:12 -08:00
2016-11-03 10:56:21 +01:00
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:21 -04:00
2018-01-24 14:52:40 -05:00
2015-02-22 15:59:54 -05:00
2011-01-19 23:31:12 -08:00
2019-04-27 17:07:21 -04:00
2019-03-26 11:17:09 -07:00
2018-10-04 13:52:23 -07:00
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:21 -04:00
2018-06-17 08:42:33 +09:00
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:21 -04:00
2018-09-25 20:17:35 -07:00
2019-04-27 17:07:21 -04:00
2019-05-07 12:09:25 -07:00
2019-05-04 00:41:41 -04:00
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:21 -04:00
2019-05-05 21:55:20 -07:00
2019-04-27 17:03:44 -04:00
2019-04-01 14:50:13 -07:00
2019-04-27 17:07:21 -04:00
2019-04-01 14:50:13 -07:00
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:21 -04:00
2017-12-21 12:32:50 -05:00
2019-04-01 14:50:13 -07:00
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:21 -04:00
2019-04-27 17:07:21 -04:00
2017-12-21 12:32:51 -05:00
2018-07-24 14:44:00 -07:00
2019-05-07 12:15:33 -07:00
2019-04-27 17:07:21 -04:00
2017-12-21 12:32:50 -05:00