Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 90836b67 authored by Tobias Klauser's avatar Tobias Klauser Committed by David S. Miller
Browse files

packet: Use PAGE_ALIGNED macro



Use PAGE_ALIGNED(...) instead of open-coding it.

Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4194b491
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4109,7 +4109,7 @@ static int packet_set_ring(struct sock *sk, union tpacket_req_u *req_u,
		err = -EINVAL;
		if (unlikely((int)req->tp_block_size <= 0))
			goto out;
		if (unlikely(req->tp_block_size & (PAGE_SIZE - 1)))
		if (unlikely(!PAGE_ALIGNED(req->tp_block_size)))
			goto out;
		if (po->tp_version >= TPACKET_V3 &&
		    (int)(req->tp_block_size -