[dm-devel] [PATCH] dm-ioctl.c: Correctly align dm_target_spec structures

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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;
 	}
 

[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux