[dm-devel] [PATCH] dm-ioctl.c: Correctly align dm_target_spec structures
Kevin Corry
kevcorry at us.ibm.com
Wed Mar 31 15:41:15 UTC 2004
Correctly align the dm_target_spec structures during retrieve_status().
This patch applies to both 2.4 and 2.6 kernels.
--- diff/drivers/md/dm-ioctl.c 2004-03-31 09:22:57.000000000 -0600
+++ source/drivers/md/dm-ioctl.c 2004-03-31 09:23:32.000000000 -0600
@@ -828,7 +828,7 @@
outptr += strlen(outptr) + 1;
used = param->data_start + (outptr - outbuf);
- align_ptr(outptr);
+ outptr = align_ptr(outptr);
spec->next = outptr - outbuf;
}
More information about the dm-devel
mailing list