From: Neil Horman Date: Fri, 10 Feb 2012 05:43:38 +0000 (+0000) Subject: netprio_cgroup: fix wrong memory access when NETPRIO_CGROUP=m X-Git-Tag: v3.3-rc4~34^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b73bc65e2771372c818db7955709c8caedbf8b9;p=pandora-kernel.git 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 Signed-off-by: Li Zefan Signed-off-by: Neil Horman CC: "David S. Miller" Signed-off-by: David S. Miller --- Reading git-diff-tree failed