[PATCH AUTOSEL for 3.18 08/59] net: wimax/i2400m: fix NULL-deref at probe

2017-12-07 Thread alexander . levin
From: Johan Hovold [ Upstream commit 6e526fdff7be4f13b24f929a04c0e9ae6761291e ] Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer or accessing memory beyond the endpoint array should a malicious device lack the expected endpoints. The endpoints

[PATCH AUTOSEL for 3.18 08/59] net: wimax/i2400m: fix NULL-deref at probe

2017-12-07 Thread alexander . levin
From: Johan Hovold [ Upstream commit 6e526fdff7be4f13b24f929a04c0e9ae6761291e ] Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer or accessing memory beyond the endpoint array should a malicious device lack the expected endpoints. The endpoints are specifically