Re: [PATCH] drm/i915/gem: Return SIGBUS for wrong mapping parameters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

> index a2195e28b625..698ff42b004a 100644
> --- a/drivers/gpu/drm/i915/gem/i915_gem_mman.c
> +++ b/drivers/gpu/drm/i915/gem/i915_gem_mman.c
> @@ -223,6 +223,7 @@ static vm_fault_t i915_error_to_vmf_fault(int err)
>  	default:
>  		WARN_ONCE(err, "unhandled error in %s: %i\n", __func__, err);
>  		fallthrough;
> +	case -EINVAL: /* the memory parameters provided are wrong */

no point for this... it was offline nacked :-)

Thanks,
Andi

>  	case -EIO: /* shmemfs failure from swap device */
>  	case -EFAULT: /* purged object */
>  	case -ENODEV: /* bad object, how did you get here! */
> -- 
> 2.45.1



[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux