[Devel] [PATCH RH8 02/14] push_backup: Add unsigned long alignment

Kirill Tkhai ktkhai at virtuozzo.com
Mon Sep 6 18:34:19 MSK 2021


find_bit() requires it.

Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 drivers/md/dm-push-backup.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/md/dm-push-backup.c b/drivers/md/dm-push-backup.c
index 14a7163c03d7..b6b4beda422c 100644
--- a/drivers/md/dm-push-backup.c
+++ b/drivers/md/dm-push-backup.c
@@ -309,6 +309,7 @@ static int setup_pb(struct push_backup *pb, void __user *mask, int timeout)
 	pb->timeout_in_jiffies = timeout * HZ;
 
 	size = DIV_ROUND_UP(clus, 8);
+	size = ALIGN(size, sizeof(unsigned long));
 
 	map = kvzalloc(size, GFP_KERNEL);
 	if (!map)




More information about the Devel mailing list