On Mon, Mar 21, 2016 at 01:44:22AM -0700, Lawrence Yiu wrote: > Older VAIO laptops without the SN00 ACPI method will have the "handles" > variable unset. Return early from sony_nc_function_cleanup when "handles" > is null. > > Signed-off-by: Lawrence Yiu <lawyiu.dev@xxxxxxxxx> Acked-by: Mattia Dongili <malattia@xxxxxxxx> > --- > drivers/platform/x86/sony-laptop.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c > index e9caa34..1dba359 100644 > --- a/drivers/platform/x86/sony-laptop.c > +++ b/drivers/platform/x86/sony-laptop.c > @@ -1446,6 +1446,9 @@ static void sony_nc_function_cleanup(struct platform_device *pd) > { > unsigned int i, result, bitmask, handle; > > + if (!handles) > + return; > + Thank you, this is indeed necessary. Given how long this sat around, it may be a good time to start cleaning-up some legacy models support. Later anyway. -- mattia :wq! -- To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html