commit | 477a897533f9ab9a6ebb6eedfa9ca3760caa94b2 | [log] [tgz] |
---|---|---|
author | Thomas Graf <tgraf@redhat.com> | Thu Dec 22 02:05:07 2011 +0000 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Fri Jan 06 14:14:08 2012 -0800 |
tree | c7b870384e18ec15602a765f5037c8cd4186ee35 | |
parent | 7eac8f9de24674cc55ee9797d05447bbfbdf1a96 [diff] |
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>