Re: [PATCH libdrm] xf86drm: Fix operator precedence

2019-02-20 Thread Frank Binns
Reviewed-by: Frank Binns Thierry Reding writes: > From: Thierry Reding > > The array subscription operator ([]) has higher precedence than the > indirection operator (*), so we need to use parentheses to properly > instruct the compiler to dereference the pointer to an array first, > and then

[PATCH libdrm] xf86drm: Fix operator precedence

2019-02-20 Thread Thierry Reding
From: Thierry Reding The array subscription operator ([]) has higher precedence than the indirection operator (*), so we need to use parentheses to properly instruct the compiler to dereference the pointer to an array first, and then subscript into the array. Fixes a crash observed on Tegra. Si