Re: [PATCH] drm: fix writing to /sys/class/drm/*/status

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

 



On Fri, Jun 05, 2015 at 07:47:22PM +0100, Russell King wrote:
> Writing to a file is supposed to return the number of bytes written.
> Returning zero unfortunately causes bash to constantly spin trying
> to write to the sysfs file, to such an extent that even ^c and ^z
> have no effect.  The only way out of that is to kill the shell and
> log back in.  This isn't nice behaviour.
> 
> Fix it by returning the number of characters written to sysfs files.
> 
> Signed-off-by: Russell King <rmk+kernel@xxxxxxxxxxxxxxxx>

Oops.

Fixes: c484f02d0f02fbbfc6decc945a69aae011041a27
Reviewed-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>

Dave, we need this for 4.1...
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel





[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux