patch-2.4.17 linux/arch/ia64/sn/io/hcl.c
Next file: linux/arch/ia64/sn/io/hubspc.c
Previous file: linux/arch/ia64/kernel/smp.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Fri Dec 21 16:40:32 2001
- Orig file:
linux-2.4.16/arch/ia64/sn/io/hcl.c
- Orig date:
Thu Apr 5 19:51:47 2001
diff -Naur -X /home/marcelo/lib/dontdiff linux-2.4.16/arch/ia64/sn/io/hcl.c linux/arch/ia64/sn/io/hcl.c
@@ -1049,16 +1049,22 @@
struct file_operations *
hwgraph_cdevsw_get(devfs_handle_t de)
{
- return(devfs_get_ops(de));
+ struct file_operations *fops = devfs_get_ops(de);
+
+ devfs_put_ops(de); /* FIXME: this may need to be moved to callers */
+ return(fops);
}
/*
* hwgraph_bdevsw_get - returns the fops of the given devfs entry.
*/
-struct file_operations *
+struct file_operations * /* FIXME: shouldn't this be a blkdev? */
hwgraph_bdevsw_get(devfs_handle_t de)
{
- return(devfs_get_ops(de));
+ struct file_operations *fops = devfs_get_ops(de);
+
+ devfs_put_ops(de); /* FIXME: this may need to be moved to callers */
+ return(fops);
}
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)