Skip to contentSkip to conversation

2.4.10-pre5 rd.c

PATCH New Ole André Vadla Ravnås 1 participant 1 message Sep 8, 2001 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.4.10-pre5 rd.c

Hi,

this fix might already have been submitted, but as I'm not currently subscribed to the list, I post it here just in case. :-)

Best regards,
Ole André
---

drivers/block/rd.c renamed from drivers/block/rd.c-orig +1 -1
@@ -259,7 +259,7 @@
 			/* special: we want to release the ramdisk memory,
 			   it's not like with the other blockdevices where
 			   this ioctl only flushes away the buffer cache. */
-			if ((atomic_read(rd_bdev[minor]->bd_openers) > 2))
+			if ((atomic_read(&rd_bdev[minor]->bd_openers) > 2))
 				return -EBUSY;
 			destroy_buffers(inode->i_rdev);
 			rd_blocksizes[minor] = 0;