Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f00c2987 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Marcel Holtmann
Browse files

ieee802154: ca8210: Fix a potential NULL pointer dereference



'spi' is known to be NULL, so we dereference a NULL pointer here.
Use 'pr_crit()' instead of 'dev_crit()' to report the message.

Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 9374bf18
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -917,10 +917,7 @@ static int ca8210_spi_transfer(
	struct cas_control *cas_ctl;

	if (!spi) {
		dev_crit(
			&spi->dev,
			"NULL spi device passed to ca8210_spi_transfer\n"
		);
		pr_crit("NULL spi device passed to %s\n", __func__);
		return -ENODEV;
	}