Commit e98499ac authored by shamir rabinovitch's avatar shamir rabinovitch Committed by David S. Miller
Browse files

RDS: memory allocated must be align to 8

Fix issue in 'rds_ib_cong_recv' when accessing unaligned memory
allocated by 'rds_page_remainder_alloc' using uint64_t pointer.

Signed-off-by: default avatarShamir Rabinovitch <>
Signed-off-by: default avatarDavid S. Miller <>
parent a0ca153f
......@@ -135,8 +135,8 @@ int rds_page_remainder_alloc(struct scatterlist *scat, unsigned long bytes,
if (rem->r_offset != 0)
rem->r_offset += bytes;
if (rem->r_offset == PAGE_SIZE) {
rem->r_offset += ALIGN(bytes, 8);
if (rem->r_offset >= PAGE_SIZE) {
rem->r_page = NULL;
Supports Markdown
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