Neil Horman 2b73bc65e2 netprio_cgroup: fix wrong memory access when NETPRIO_CGROUP=m
When the netprio_cgroup module is not loaded, net_prio_subsys_id
is -1, and so sock_update_prioidx() accesses cgroup_subsys array
with negative index subsys[-1].

Make the code resembles cls_cgroup code, which is bug free.

Origionally-authored-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
CC: "David S. Miller" <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-02-10 15:08:57 -05:00
..
2011-03-31 11:26:23 -03:00
2011-12-28 15:06:58 -05:00
2011-07-26 16:49:47 -07:00
2011-05-05 11:10:14 -07:00
2010-06-03 03:21:52 -07:00
2010-10-27 11:37:32 -07:00
2011-03-31 11:26:23 -03:00
2011-12-03 09:35:05 -08:00
2011-07-26 16:49:47 -07:00
2011-12-11 18:25:16 -05:00
2010-10-25 13:09:45 -07:00
2011-12-11 18:25:16 -05:00
2010-10-27 11:37:32 -07:00
2011-03-31 11:26:23 -03:00
2011-09-16 19:20:20 -04:00
2011-07-26 16:49:47 -07:00
2010-06-03 03:21:52 -07:00
2011-05-17 14:16:58 -04:00
2011-12-11 18:25:16 -05:00
2012-02-01 14:41:50 -05:00
2011-12-11 18:25:16 -05:00
2009-10-07 16:39:43 -04:00
2011-03-31 11:26:23 -03:00
2010-11-28 11:12:20 -08:00
2011-11-22 16:43:32 -05:00