patch-2.4.5 linux/drivers/s390/block/dasd.c

Next file: linux/drivers/s390/char/hwc_tty.c
Previous file: linux/drivers/pcmcia/i82365.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.4/linux/drivers/s390/block/dasd.c linux/drivers/s390/block/dasd.c
@@ -2892,7 +2892,7 @@
 static ssize_t
 dasd_devices_write (struct file *file, const char *user_buf, size_t user_len, loff_t * offset)
 {
-	char *buffer = vmalloc (user_len);
+	char *buffer = vmalloc (user_len+1);
 	int off = 0;
 	char *temp;
         int irq;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)