summaryrefslogtreecommitdiff
path: root/include/linux/textsearch.h
diff options
context:
space:
mode:
authorIgor Pylypiv <ipylypiv@google.com>2024-11-08 00:15:42 +0000
committerWolfram Sang <wsa+renesas@sang-engineering.com>2024-11-14 11:22:57 +0100
commit48730a9d04ffccda541602d722d1ff81920a85d8 (patch)
tree67049c6dad15e6bbf8f4947ed1783f5617c10aa0 /include/linux/textsearch.h
parent433c6916628e5e2ba47e618d96c23e8a9c5a6b9e (diff)
i2c: dev: Fix memory leak when underlying adapter does not support I2C
Early return in i2cdev_ioctl_rdwr() failed to free the memory allocated by the caller. Move freeing the memory to the function where it has been allocated to prevent similar leaks in the future. Fixes: 97ca843f6ad3 ("i2c: dev: Check for I2C_FUNC_I2C before calling i2c_transfer") Signed-off-by: Igor Pylypiv <ipylypiv@google.com> [wsa: replaced '== NULL' with '!'] Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Diffstat (limited to 'include/linux/textsearch.h')
0 files changed, 0 insertions, 0 deletions