diff options
author | Oliver Neukum <oneukum@suse.com> | 2019-11-06 13:49:01 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-07 11:19:23 +0100 |
commit | 91feb01596e5efc0cc922cc73f5583114dccf4d2 (patch) | |
tree | 474e5d6e35faad4c57227cc3037835a5a1885a12 /tools/usb | |
parent | c1f602da92ccc40cfe6ea60c1b3dcd172b4f7b5e (diff) | |
download | linux-91feb01596e5efc0cc922cc73f5583114dccf4d2.tar.gz linux-91feb01596e5efc0cc922cc73f5583114dccf4d2.tar.bz2 linux-91feb01596e5efc0cc922cc73f5583114dccf4d2.zip |
appledisplay: fix error handling in the scheduled work
The work item can operate on
1. stale memory left over from the last transfer
the actual length of the data transfered needs to be checked
2. memory already freed
the error handling in appledisplay_probe() needs
to cancel the work in that case
Reported-and-tested-by: syzbot+495dab1f175edc9c2f13@syzkaller.appspotmail.com
Signed-off-by: Oliver Neukum <oneukum@suse.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20191106124902.7765-1-oneukum@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/usb')
0 files changed, 0 insertions, 0 deletions