Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'input-for-v6.1-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input

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()

+3 -1
+3 -1
drivers/input/touchscreen/raydium_i2c_ts.c
··· 211 211 212 212 error = raydium_i2c_xfer(client, addr, xfer, ARRAY_SIZE(xfer)); 213 213 if (likely(!error)) 214 - return 0; 214 + goto out; 215 215 216 216 msleep(RM_RETRY_DELAY_MS); 217 217 } while (++tries < RM_MAX_RETRIES); 218 218 219 219 dev_err(&client->dev, "%s failed: %d\n", __func__, error); 220 + out: 221 + kfree(tx_buf); 220 222 return error; 221 223 } 222 224