[PATCH 3.4 046/146] IB/core: disallow registering 0-sized memory region

2015-09-15 Thread lizf
From: Yann Droneaud 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 8abaae62f3fdead8f4ce0ab46b4ab93dee39bab2 upstream. If ib_umem_get() is called with a size equal to 0 and an non-page aligned address, one page will be pinned and a

[PATCH 3.4 046/146] IB/core: disallow registering 0-sized memory region

2015-09-15 Thread lizf
From: Yann Droneaud 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 8abaae62f3fdead8f4ce0ab46b4ab93dee39bab2 upstream. If ib_umem_get() is called with a size equal to 0 and an non-page aligned address, one page will