Index: linux-2.4.29-rsbac-v1.2.4/fs/proc/base.c
===================================================================
--- linux-2.4.29-rsbac-v1.2.4/fs/proc/base.c	(Revision 228)
+++ linux-2.4.29-rsbac-v1.2.4/fs/proc/base.c	(Revision 229)
@@ -430,6 +430,7 @@
 static int maps_open(struct inode *inode, struct file *file)
 {
 	struct task_struct *task = inode->u.proc_i.task;
+	int ret;
 
         /* RSBAC */
         #ifdef CONFIG_RSBAC
@@ -456,7 +457,7 @@
           }
         #endif
 
-	int ret = seq_open(file, &proc_pid_maps_op);
+	ret = seq_open(file, &proc_pid_maps_op);
 	if (!ret) {
 		struct seq_file *m = file->private_data;
 		m->private = task;
@@ -475,6 +476,7 @@
 static int mounts_open(struct inode *inode, struct file *file)
 {
 	struct task_struct *task = inode->u.proc_i.task;
+	int ret;
 
         /* RSBAC */
         #ifdef CONFIG_RSBAC
@@ -501,7 +503,7 @@
           }
         #endif
 
-	int ret = seq_open(file, &mounts_op);
+	ret = seq_open(file, &mounts_op);
 
 	if (!ret) {
 		struct seq_file *m = file->private_data;
