]> git.baikalelectronics.ru Git - 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)
commit4c773a7200b3d06bfc5e87956ddacc85f7e40f6a
tree4a84e53445817547adb299b25c54e613f76a8980
parent06a2f503f0ee2059a09fa40f79c2b22398fe86a2
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