]> git.baikalelectronics.ru Git - kernel.git/commit
netprio_cgroup: Fix obo in get_prioidx
authorNeil Horman <nhorman@tuxdriver.com>
Fri, 3 Feb 2012 05:18:43 +0000 (05:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Feb 2012 21:30:24 +0000 (16:30 -0500)
commit11fdf2aa4527046672deec59af26b1ac815bc268
treef085176f6441a32782294dccdd52336c58b0ba5f
parent48a3b1464e7dfef7e69736a0a81e1ac02c8180c7
netprio_cgroup: Fix obo in get_prioidx

It was recently pointed out to me that the get_prioidx function sets a bit in
the prioidx map prior to checking to see if the index being set is out of
bounds.  This patch corrects that, avoiding the possiblity of us writing beyond
the end of the array

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Reported-by: Stanislaw Gruszka <sgruszka@redhat.com>
CC: Stanislaw Gruszka <sgruszka@redhat.com>
CC: "David S. Miller" <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/netprio_cgroup.c