use mm.h definition

Cc: "David S. Miller" <[email protected]>
Cc: Daniel Borkmann <[email protected]>
Signed-off-by: Fabian Frederick <[email protected]>
---
 net/netlink/af_netlink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index 15c731f..935fea2 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -376,7 +376,7 @@ static int netlink_set_ring(struct sock *sk, struct 
nl_mmap_req *req,
 
                if ((int)req->nm_block_size <= 0)
                        return -EINVAL;
-               if (!IS_ALIGNED(req->nm_block_size, PAGE_SIZE))
+               if (!PAGE_ALIGNED(req->nm_block_size))
                        return -EINVAL;
                if (req->nm_frame_size < NL_MMAP_HDRLEN)
                        return -EINVAL;
-- 
1.8.4.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to