public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dm-raid1 breakage on 64bit
@ 2008-02-13  3:53 Al Viro
  0 siblings, 0 replies; only message in thread
From: Al Viro @ 2008-02-13  3:53 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel, agk

test_and_set_bit() on address of uint32_t is a Bad Idea(tm)...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c
index edc057f..2928ef2 100644
--- a/drivers/md/dm-raid1.c
+++ b/drivers/md/dm-raid1.c
@@ -124,7 +124,7 @@ enum dm_raid1_error {
 struct mirror {
 	struct mirror_set *ms;
 	atomic_t error_count;
-	uint32_t error_type;
+	unsigned long error_type;
 	struct dm_dev *dev;
 	sector_t offset;
 };

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-02-13  3:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-13  3:53 [PATCH] dm-raid1 breakage on 64bit Al Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox