]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mfd: dln2: More sanity checking for endpoints
authorOliver Neukum <oneukum@suse.com>
Thu, 21 Nov 2019 10:28:10 +0000 (11:28 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Feb 2020 12:33:54 +0000 (04:33 -0800)
commitf7d8f999fbae71d5e9b75810145a4ece4d922f86
treecfba0e709ae5c782f8dc5e444028df07d60544bd
parent3ceb3fcd6d1a6a65e7bf3873a63009d01ba4b05f
mfd: dln2: More sanity checking for endpoints

commit 2b8bd606b1e60ca28c765f69c1eedd7d2a2e9dca upstream.

It is not enough to check for the number of endpoints.
The types must also be correct.

Reported-and-tested-by: syzbot+48a2851be24583b864dc@syzkaller.appspotmail.com
Signed-off-by: Oliver Neukum <oneukum@suse.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mfd/dln2.c