Re: [Intel-gfx] [PATCH] drm/i915: Trim the i915_error_printf by the trailing '\0'

2013-06-24 Thread Mika Kuoppala
Chris Wilson ch...@chris-wilson.co.uk writes: It seems the request to vsnprintf will try to write to the byte past the end of the maximum buffer, so trim the length by one byte. [76973.700434] BUG: unable to handle kernel paging request at 1000 [76973.700468] IP:

Re: [Intel-gfx] [PATCH] drm/i915: Trim the i915_error_printf by the trailing '\0'

2013-06-24 Thread Daniel Vetter
On Mon, Jun 24, 2013 at 03:26:54PM +0300, Mika Kuoppala wrote: Chris Wilson ch...@chris-wilson.co.uk writes: It seems the request to vsnprintf will try to write to the byte past the end of the maximum buffer, so trim the length by one byte. [76973.700434] BUG: unable to handle kernel

[Intel-gfx] [PATCH] drm/i915: Trim the i915_error_printf by the trailing '\0'

2013-06-23 Thread Chris Wilson
It seems the request to vsnprintf will try to write to the byte past the end of the maximum buffer, so trim the length by one byte. [76973.700434] BUG: unable to handle kernel paging request at 1000 [76973.700468] IP: [811fb84d] strnlen+0xd/0x40 [76973.700494] PGD 10387b067