]> git.karo-electronics.de Git - karo-tx-linux.git/commit
netlabel: fix a problem with netlbl_secattr_catmap_setrng()
authorJanak Desai <Janak.Desai@gtri.gatech.edu>
Mon, 28 Mar 2016 15:09:46 +0000 (11:09 -0400)
committerPaul Moore <paul@paul-moore.com>
Tue, 5 Apr 2016 20:10:47 +0000 (16:10 -0400)
commit341e0cb593a2b7ec86dd6ca96c68eadc3f6fe1e6
tree5b34d982d7c646e30c26dc89f5de4d93b5695b9d
parent9735a22799b9214d17d3c231fe377fc852f042e9
netlabel: fix a problem with netlbl_secattr_catmap_setrng()

We try to be clever and set large chunks of the bitmap at once, when
possible; unfortunately we weren't very clever when we wrote the code
and messed up the if-conditional.  Fix this bug and restore proper
operation.

Signed-off-by: Janak Desai <Janak.Desai@gtri.gatech.edu>
Signed-off-by: Paul Moore <paul@paul-moore.com>
net/netlabel/netlabel_kapi.c