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 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

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

2013-06-24 Thread Mika Kuoppala
Chris Wilson 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: [] strnlen+0xd/0x40 > [76973.700494]

[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: [] strnlen+0xd/0x40 [76973.700494] PGD 10387b067 PUD 15411a067 PMD 0