Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a505b3b3 authored by David S. Miller's avatar David S. Miller
Browse files

sch_atm: Fix potential NULL deref.



The list_head conversion unearther an unnecessary flow
check.  Since flow is always NULL here we don't need to
see if a matching flow exists already.

Reported-by: default avatarJiri Slaby <jirislaby@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 053d8f66
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -255,10 +255,6 @@ static int atm_tc_change(struct Qdisc *sch, u32 classid, u32 parent,
			error = -EINVAL;
			goto err_out;
		}
		if (!list_empty(&flow->list)) {
			error = -EEXIST;
			goto err_out;
		}
	} else {
		int i;
		unsigned long cl;