Re: [PATCH] staging: dgrp: dgrp_tty.c: return an -EFAULT ifget_user() fails

From: Alan Cox
Date: Wed Nov 14 2012 - 06:50:16 EST


On Wed, 14 Nov 2012 13:11:18 +0530
Kumar Amit Mehta <gmate.amit@xxxxxxxxx> wrote:

> Inspect the return value of get_user() and return -EFAULT on error.

You cam just delete all the TIOCSOFTCAR nonsense. That ioctl is handled
correctly by the core tty layer code rather than incorrectly by the dgrp
driver.

Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/