]> git.baikalelectronics.ru Git - kernel.git/commit
nds32: fix logic for module
authorGreentime Hu <greentime@andestech.com>
Wed, 18 Jul 2018 01:54:55 +0000 (09:54 +0800)
committerGreentime Hu <greentime@andestech.com>
Tue, 4 Sep 2018 06:45:15 +0000 (14:45 +0800)
commit00ccd603f6035ce248b87dd08bc37ae5b87b00a1
tree213aaf362dec982cbcf3d397ff71f1d82d2eb22b
parent77e0a4623a7dc6c49e4b731092b7a6d5605e640c
nds32: fix logic for module

This bug is report by Dan Carpenter. We shall use ~loc_mask instead of
!loc_mask because we need to and(&) the bits of ~loc_mask.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: a54db20c7cb6 ("nds32: Loadable modules")
Signed-off-by: Greentime Hu <greentime@andestech.com>
arch/nds32/kernel/module.c