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

Commit 68b14b8f authored by Tomas Henzl's avatar Tomas Henzl Committed by Christoph Hellwig
Browse files

esas2r: fix an oversight in setting return value



The patch moves an error code assigment to a 'default' case
in the previous switch statement.

Signed-off-by: default avatarTomas Henzl <thenzl@redhat.com>
Acked-by: default avatarBradley Grove <bgrove@attotech.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent ba9e5874
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1524,9 +1524,12 @@ int esas2r_ioctl_handler(void *hostdata, int cmd, void __user *arg)
		case -EINVAL:
			ioctl->header.return_code = IOCTL_INVALID_PARAM;
			break;
		}

		default:
			ioctl->header.return_code = IOCTL_GENERAL_ERROR;
			break;
		}

	}

	/* Always copy the buffer back, if only to pick up the status */