Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64d67d21 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

revert "vanishing ioctl handler debugging"



Revert my do_ioctl() debugging patch: Paul fixed the bug.

Cc: Paul Fulghum <paulkf@microgate.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 77ec739d
Loading
Loading
Loading
Loading
+3 −11
Original line number Diff line number Diff line
@@ -12,7 +12,6 @@
#include <linux/fs.h>
#include <linux/security.h>
#include <linux/module.h>
#include <linux/kallsyms.h>

#include <asm/uaccess.h>
#include <asm/ioctls.h>
@@ -21,7 +20,6 @@ static long do_ioctl(struct file *filp, unsigned int cmd,
		unsigned long arg)
{
	int error = -ENOTTY;
	void *f;

	if (!filp->f_op)
		goto out;
@@ -31,16 +29,10 @@ static long do_ioctl(struct file *filp, unsigned int cmd,
		if (error == -ENOIOCTLCMD)
			error = -EINVAL;
		goto out;
	} else if ((f = filp->f_op->ioctl)) {
	} else if (filp->f_op->ioctl) {
		lock_kernel();
		if (!filp->f_op->ioctl) {
			printk("%s: ioctl %p disappeared\n", __FUNCTION__, f);
			print_symbol("symbol: %s\n", (unsigned long)f);
			dump_stack();
		} else {
		error = filp->f_op->ioctl(filp->f_path.dentry->d_inode,
					  filp, cmd, arg);
		}
		unlock_kernel();
	}