patch-1.3.50 linux/drivers/block/floppy.c

Next file: linux/drivers/block/genhd.c
Previous file: linux/drivers/block/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.49/linux/drivers/block/floppy.c linux/drivers/block/floppy.c
@@ -3479,6 +3479,7 @@
 		if (floppy_track_buffer){
 			free_pages((unsigned long)tmp,__get_order(try*1024));
 		}else {
+			buffer_min = buffer_max = -1;
 			floppy_track_buffer = tmp;
 			max_buffer_sectors = try;
 		}
@@ -3955,6 +3956,7 @@
 		tmpaddr = (void *)floppy_track_buffer;
 		floppy_track_buffer = 0;
 		max_buffer_sectors = 0;
+		buffer_min = buffer_max = -1;
 		free_pages((unsigned long)tmpaddr, __get_order(tmpsize));
 	}
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this