From 6eb46d3324a8b58c26798c438f737ef5b1ce718f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ronald=20Tschal=C3=A4r?= Date: Sat, 1 Dec 2018 19:25:48 -0800 Subject: [PATCH] applespi: Add missing malloc failure check in probe. --- applespi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applespi.c b/applespi.c index 60530cc..0e4b209 100644 --- a/applespi.c +++ b/applespi.c @@ -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 */