]> git.baikalelectronics.ru Git - kernel.git/commit
Input: cyttsp4 - kfree xfer_buf on error path in probe()
authorFerruh Yigit <fery@cypress.com>
Thu, 4 Jul 2013 21:02:45 +0000 (14:02 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 4 Jul 2013 21:05:50 +0000 (14:05 -0700)
commit7733cf1b4f568776c5dd331d56bd2ef9f7847d6f
tree1b77eb5a6649dd9a09cf8f5b28ec926a73638448
parente397cd76e65d5e5da2241c608590ec502b6fc6b8
Input: cyttsp4 - kfree xfer_buf on error path in probe()

If probe() fails after cd->xfer_buf allocated, it will not freed.
Added kfree(cd->xfer_buf) with and error label.

Signed-off-by: Ferruh Yigit <fery@cypress.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/cyttsp4_core.c