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

Commit 5daea578 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drivers: net: can: free allocated memory in k61_spi_transaction function"

parents 1e3155be e6b7957e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -313,8 +313,11 @@ static int k61_do_spi_transaction(struct k61_can *priv_data)
	ret = spi_sync(spi, msg);
	LOGDI("spi_sync ret %d\n", ret);

	if (ret == 0)
	if (ret == 0) {
		devm_kfree(&spi->dev, msg);
		devm_kfree(&spi->dev, xfer);
		k61_process_rx(priv_data, priv_data->rx_buf);
	}
	return ret;
}