commit | df3eb6cd68924d5ea16032faecae7fb775f67883 | [log] [tgz] |
---|---|---|
author | Bernie Harris <bernie.harris@alliedtelesis.co.nz> | Thu Jan 28 16:30:51 2016 +1300 |
committer | David S. Miller <davem@davemloft.net> | Fri Jan 29 17:26:44 2016 -0800 |
tree | 665e9b3f2484a31be8c4237862ea6dff274b0a94 | |
parent | b83ef507d9e2bc25cea40b1fb13ebd1ca7c4969a [diff] |
net_sched: drr: check for NULL pointer in drr_dequeue There are cases where qdisc_dequeue_peeked can return NULL, and the result is dereferenced later on in the function. Similarly to the other qdisc dequeue functions, check whether the skb pointer is NULL and if it is, goto out. Signed-off-by: Bernie Harris <bernie.harris@alliedtelesis.co.nz> Reviewed-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>