mqprio: Avoid panic if no options are provided
authorThomas Graf <tgraf@redhat.com>
Thu, 22 Dec 2011 02:05:07 +0000 (02:05 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 6 Jan 2012 22:17:27 +0000 (14:17 -0800)
commitad24a5287dd16619b31b9c30917615ab1fcb56b0
treef4e717dc5f2d48cf74dcc8b77487955c09e27d46
parent3515cb57df914810fc5c0cca5037e2ad3663c6ad
mqprio: Avoid panic if no options are provided

[ Upstream commit 7838f2ce36b6ab5c13ef20b1857e3bbd567f1759 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sched/sch_mqprio.c