]> 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)
commit0d20d265ed7907691e6dd32202befb567381bc12
tree4a84e53445817547adb299b25c54e613f76a8980
parentcd1ad329e9587d261ff407bf6ba6429c0ae194dc
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