commit | 3ba5515bf4eecbec08fedde5e35bdabb153c83be | [log] [tgz] |
---|---|---|
author | Christian Gromm <christian.gromm@microchip.com> | Tue Nov 21 15:05:17 2017 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Nov 27 09:20:37 2017 +0100 |
tree | 972a415f09c6e0fc40234deab94b897765b07ee5 | |
parent | 4e6d561d51f91ad465e127b6b5fabf1f1db01fc5 [diff] |
staging: most: core: check value returned by match function This patch adds a check for the pointer returned by the function match_component. It is needed to prevent a NULL pointer dereference in case the provided component name does not match any list entry. Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>