]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: drr: check for NULL pointer in drr_dequeue
authorBernie Harris <bernie.harris@alliedtelesis.co.nz>
Thu, 28 Jan 2016 03:30:51 +0000 (16:30 +1300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Jan 2016 01:26:44 +0000 (17:26 -0800)
commit34e9b1a0befbff52e41157abeeaeacaf87bcc273
tree665e9b3f2484a31be8c4237862ea6dff274b0a94
parent142df2a4c0f8985c5fc95236d656830e4415d98e
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>
net/sched/sch_drr.c