patch-2.4.0-test8 linux/drivers/scsi/st.c

Next file: linux/drivers/scsi/tmscsim.h
Previous file: linux/drivers/scsi/sr_ioctl.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test7/linux/drivers/scsi/st.c linux/drivers/scsi/st.c
@@ -3486,6 +3486,8 @@
 		if (tmp_da == NULL || tmp_ba == NULL) {
 			if (tmp_da != NULL)
 				kfree(tmp_da);
+			if (tmp_ba != NULL)
+				kfree(tmp_ba);
 			SDp->attached--;
 			write_unlock_irqrestore(&st_dev_arr_lock, flags);
 			printk(KERN_ERR "st: Can't extend device array.\n");

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