]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
mqprio: Avoid panic if no options are provided
authorThomas Graf <tgraf@redhat.com>
Thu, 22 Dec 2011 02:05:07 +0000 (02:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Dec 2011 03:34:56 +0000 (22:34 -0500)
commit7838f2ce36b6ab5c13ef20b1857e3bbd567f1759
tree4a84e53445817547adb299b25c54e613f76a8980
parenta13861a28b90541aa207532d237e7a940f1b1c7b
mqprio: Avoid panic if no options are provided

Userspace may not provide TCA_OPTIONS, in fact tc currently does
so not do so if no arguments are specified on the command line.
Return EINVAL instead of panicing.

Signed-off-by: Thomas Graf <tgraf@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_mqprio.c