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

2019-01-28 Thread Greg KH
On Thu, Jan 24, 2019 at 08:26:10AM +0100, Uwe Kleine-König wrote: > Hello Sasha, > > On Wed, Jan 23, 2019 at 10:57:44PM +, Sasha Levin wrote: > > [This is an automated email] > > Not sure if I only state the obvious that was just missed by your > automation. > > > > This commit has been proc

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

2019-01-23 Thread Uwe Kleine-König
Hello Sasha, On Wed, Jan 23, 2019 at 10:57:44PM +, Sasha Levin wrote: > [This is an automated email] Not sure if I only state the obvious that was just missed by your automation. > > This commit has been processed because it contains a "Fixes:" tag, > fixing commit: cbffaf7aa09e can: flexcan

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

2019-01-22 Thread Uwe Kleine-König
On Tue, Jan 22, 2019 at 02:21:16PM +0100, Marc Kleine-Budde wrote: > From: 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-b

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

2019-01-22 Thread Marc Kleine-Budde
From: 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 ar