]> 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)
commit5cd30a14836a09358703c27fb07bcae967992f54
tree213aaf362dec982cbcf3d397ff71f1d82d2eb22b
parent72c947294252cbe2f65f649bd9bf0ffe56abd5f0
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: 47f5d78beada ("nds32: Loadable modules")
Signed-off-by: Greentime Hu <greentime@andestech.com>
arch/nds32/kernel/module.c