Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Alex Williamson <alex.williamson@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: intel-gvt-dev@lists.freedesktop.org,
	David Airlie <airlied@linux.ie>,
	dri-devel@lists.freedesktop.org, stable@vger.kernel.org,
	Rodrigo Vivi <rodrigo.vivi@intel.com>,
	Zhi Wang <zhi.a.wang@intel.com>
Subject: Re: [PATCH v3] drm/i915/gvt: throw error on unhandled vfio ioctls
Date: Wed, 21 Mar 2018 09:44:32 -0600	[thread overview]
Message-ID: <20180321094432.4aea0286@w520.home> (raw)
In-Reply-To: <20180321140847.572-1-kraxel@redhat.com>

On Wed, 21 Mar 2018 15:08:47 +0100
Gerd Hoffmann <kraxel@redhat.com> wrote:

> On unknown/unhandled ioctls the driver should return an error, so
> userspace knows it tried to use something unsupported.
> 
> Cc: stable@vger.kernel.org
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> ---
>  drivers/gpu/drm/i915/gvt/kvmgt.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/gvt/kvmgt.c b/drivers/gpu/drm/i915/gvt/kvmgt.c
> index 021f722e24..f34d7f1e6c 100644
> --- a/drivers/gpu/drm/i915/gvt/kvmgt.c
> +++ b/drivers/gpu/drm/i915/gvt/kvmgt.c
> @@ -1284,7 +1284,7 @@ static long intel_vgpu_ioctl(struct mdev_device *mdev, unsigned int cmd,
>  
>  	}
>  
> -	return 0;
> +	return -ENOTTY;
>  }
>  
>  static ssize_t

Reviewed-by: Alex Williamson <alex.williamson@redhat.com>

       reply	other threads:[~2018-03-21 15:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20180321140847.572-1-kraxel@redhat.com>
2018-03-21 15:44 ` Alex Williamson [this message]
2018-03-22  2:13   ` [PATCH v3] drm/i915/gvt: throw error on unhandled vfio ioctls Zhenyu Wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180321094432.4aea0286@w520.home \
    --to=alex.williamson@redhat.com \
    --cc=airlied@linux.ie \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gvt-dev@lists.freedesktop.org \
    --cc=kraxel@redhat.com \
    --cc=rodrigo.vivi@intel.com \
    --cc=stable@vger.kernel.org \
    --cc=zhi.a.wang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox