patch-2.3.11 linux/drivers/sgi/char/shmiq.c

Next file: linux/drivers/sound/awacs_defs.h
Previous file: linux/drivers/scsi/eata_pio.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.10/linux/drivers/sgi/char/shmiq.c linux/drivers/sgi/char/shmiq.c
@@ -214,6 +214,8 @@
 			goto bad_file;
 
 		v = shmiq_manage_file (file);
+		if (v<0)
+			fput(file);
 		return v;
 
 		/*

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