Commit 74e83b23 authored by Tobias Klauser's avatar Tobias Klauser Committed by David S. Miller

netlink: Use PAGE_ALIGNED macro

Use PAGE_ALIGNED(...) instead of IS_ALIGNED(..., PAGE_SIZE).
Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7304fe46
...@@ -374,7 +374,7 @@ static int netlink_set_ring(struct sock *sk, struct nl_mmap_req *req, ...@@ -374,7 +374,7 @@ static int netlink_set_ring(struct sock *sk, struct nl_mmap_req *req,
if ((int)req->nm_block_size <= 0) if ((int)req->nm_block_size <= 0)
return -EINVAL; return -EINVAL;
if (!IS_ALIGNED(req->nm_block_size, PAGE_SIZE)) if (!PAGE_ALIGNED(req->nm_block_size))
return -EINVAL; return -EINVAL;
if (req->nm_frame_size < NL_MMAP_HDRLEN) if (req->nm_frame_size < NL_MMAP_HDRLEN)
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment