net/nfp: fix possible bad shif operation
authorAlejandro Lucero <alejandro.lucero@netronome.com>
Wed, 8 Nov 2017 12:28:11 +0000 (12:28 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 10 Nov 2017 09:31:24 +0000 (09:31 +0000)
commit1fdbf9b06a45d78f0f94b9c793847047070d6827
tree093c07c5d045d1124b4bb828e4ed2b5a2694805f
parentf5cba91b095d54e8d7fcea57e515b5b4453b02ba
net/nfp: fix possible bad shif operation

We do not know how big can the BAR be, but we know anything less
than 1MB is an error. This BAR needs to be big enough for accessing
most of NFP internals.

Coverity issue: 195024
Fixes: d12206e00590 ("net/nfp: add NSP user space interface")

Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>
drivers/net/nfp/nfp_nfpu.c