Re: [PATCH] driver core : Fix use after free of dev->parent in device_shutdown

From: Benson Leung
Date: Tue Sep 24 2013 - 23:07:32 EST


On Tue, Sep 24, 2013 at 6:14 PM, Ming Lei <ming.lei@xxxxxxxxxxxxx> wrote:
> It is better to save one line by below:
>
> parent = get_device(dev->parent);
>
Done.

>
> Reviewed-by: Ming Lei <ming.lei@xxxxxxxxxxxxx>

Thank you!


--
Benson Leung
Software Engineer, Chrom* OS
bleung@xxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/