Commit 43e41b0
spi: check ctrl->cur_msg validity before dereferencing
In case an SPI transfer fails the mesg has been identified on SAMA5D2
ICP as being NULL. Thus check its validity to avoid a crash.
Fixes: 8caab75 ("spi: Generalize SPI "master" to "controller"")
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>1 parent 5ff0e74 commit 43e41b0
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2000 | 2000 | | |
2001 | 2001 | | |
2002 | 2002 | | |
| 2003 | + | |
| 2004 | + | |
2003 | 2005 | | |
2004 | 2006 | | |
2005 | 2007 | | |
| |||
0 commit comments