Commit 50f36c5a authored by Linus Torvalds's avatar Linus Torvalds
Browse files
Pull input fix from Dmitry Torokhov:

 - a fix for Raydium touchscreen driver to stop leaking memory when
   sending commands to the chip

* tag 'input-for-v6.1-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
  Input: raydium_ts_i2c - fix memory leak in raydium_i2c_send()
parents c2bf05db 8c9a5993
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -211,12 +211,14 @@ static int raydium_i2c_send(struct i2c_client *client,

		error = raydium_i2c_xfer(client, addr, xfer, ARRAY_SIZE(xfer));
		if (likely(!error))
			return 0;
			goto out;

		msleep(RM_RETRY_DELAY_MS);
	} while (++tries < RM_MAX_RETRIES);

	dev_err(&client->dev, "%s failed: %d\n", __func__, error);
out:
	kfree(tx_buf);
	return error;
}