patch-2.4.8 linux/arch/parisc/hpux/sys_hpux.c

Next file: linux/arch/ppc/kernel/misc.S
Previous file: linux/arch/ia64/vmlinux.lds.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.7/linux/arch/parisc/hpux/sys_hpux.c linux/arch/parisc/hpux/sys_hpux.c
@@ -109,9 +109,11 @@
 
 	lock_kernel();
 	s = get_super(to_kdev_t(dev));
+	unlock_kernel();
 	if (s == NULL)
 		goto out;
 	err = vfs_statfs(s, &sbuf);
+	drop_super(s);
 	if (err)
 		goto out;
 
@@ -124,7 +126,6 @@
 	/* Changed to hpux_ustat:  */
 	err = copy_to_user(ubuf,&tmp,sizeof(struct hpux_ustat)) ? -EFAULT : 0;
 out:
-	unlock_kernel();
 	return err;
 }
 

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