Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
applespi: Add missing malloc failure check in probe.
  • Loading branch information
roadrunner2 committed Dec 2, 2018
1 parent 06b6550 commit 6eb46d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applespi.c
Expand Up @@ -1743,7 +1743,7 @@ static int applespi_probe(struct spi_device *spi)
GFP_KERNEL);

if (!applespi->tx_buffer || !applespi->tx_status ||
!applespi->rx_buffer)
!applespi->rx_buffer || !applespi->msg_buf)
return -ENOMEM;

/* set up our spi messages */
Expand Down

0 comments on commit 6eb46d3

Please sign in to comment.