Re: [PATCH] can: flexcan: fix NULL pointer exception during bringup

2019-01-22 Thread Marc Kleine-Budde
On 1/11/19 12:20 PM, Uwe Kleine-König wrote: > Commit cbffaf7aa09e ("can: flexcan: Always use last mailbox for TX") > introduced a loop letting i run up to (including) ARRAY_SIZE(regs->mb) > and in the body accessed regs->mb[i] which is an out-of-bounds array > access that then resulted in an acces

[PATCH] can: flexcan: fix NULL pointer exception during bringup

2019-01-11 Thread Uwe Kleine-König
Commit cbffaf7aa09e ("can: flexcan: Always use last mailbox for TX") introduced a loop letting i run up to (including) ARRAY_SIZE(regs->mb) and in the body accessed regs->mb[i] which is an out-of-bounds array access that then resulted in an access to an reserved register area. Later this was chang