mfd: dln2: More sanity checking for endpoints
authorOliver Neukum <oneukum@suse.com>
Thu, 21 Nov 2019 10:28:10 +0000 (11:28 +0100)
committerLee Jones <lee.jones@linaro.org>
Fri, 24 Jan 2020 07:33:57 +0000 (07:33 +0000)
commit2b8bd606b1e60ca28c765f69c1eedd7d2a2e9dca
tree90fe8d64ac55ec5658c310b43e97eed7b9d56b8f
parentb88aa8509828b56919b3cb0901803354fc156320
mfd: dln2: More sanity checking for endpoints

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>
drivers/mfd/dln2.c