Re: [PATCH] s390/3270: return -ENOTTY for unknown ioctls in fs3270_ioctl()

From: Heiko Carstens

Date: Mon Oct 05 2026 - 04:38:22 EST


On Mon, Oct 05, 2026 at 01:58:25PM +0800, Shirong Zhao wrote:
> fs3270_ioctl() initializes rc to 0 and its cmd switch has no default
> branch, so an unrecognized ioctl command returns success without doing
> anything. Follow the ioctl convention and reject unknown commands with
> -ENOTTY.
...
> Signed-off-by: Shirong Zhao <shxzhaosr@xxxxxxx>
> ---
> drivers/s390/char/fs3270.c | 3 +++
> 1 file changed, 3 insertions(+)

Applied, thanks!