summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-rs5c348.c
diff options
context:
space:
mode:
authorTodd Kjos <tkjos@android.com>2019-06-21 10:54:15 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-22 11:49:16 +0200
commit1909a671dbc3606685b1daf8b22a16f65ea7edda (patch)
treee3fe8453fc0122847fc8b7fba6505658d595a310 /drivers/rtc/rtc-rs5c348.c
parent21f010b110c58f4e77d5a35244f42169c8d33e9a (diff)
downloadlinux-stable-1909a671dbc3606685b1daf8b22a16f65ea7edda.tar.gz
linux-stable-1909a671dbc3606685b1daf8b22a16f65ea7edda.tar.bz2
linux-stable-1909a671dbc3606685b1daf8b22a16f65ea7edda.zip
binder: fix memory leak in error path
syzkallar found a 32-byte memory leak in a rarely executed error case. The transaction complete work item was not freed if put_user() failed when writing the BR_TRANSACTION_COMPLETE to the user command buffer. Fixed by freeing it before put_user() is called. Reported-by: syzbot+182ce46596c3f2e1eb24@syzkaller.appspotmail.com Signed-off-by: Todd Kjos <tkjos@google.com> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/rtc/rtc-rs5c348.c')
0 files changed, 0 insertions, 0 deletions