Re: [PATCH] firmware: Prevent oops on delayed abort

2017-01-04 Thread Luis R. Rodriguez
On Wed, Jan 04, 2017 at 03:47:49PM +, Chris Wilson wrote: > On Wed, Jan 04, 2017 at 04:40:49PM +0100, Luis R. Rodriguez wrote: > > On Wed, Jan 04, 2017 at 07:12:11PM +0800, Ming Lei wrote: > > > On Wed, Jan 4, 2017 at 5:31 PM, Chris Wilson > > > wrote: > > > > If the firmware load is slow and

Re: [PATCH] firmware: Prevent oops on delayed abort

2017-01-04 Thread Chris Wilson
On Wed, Jan 04, 2017 at 04:40:49PM +0100, Luis R. Rodriguez wrote: > On Wed, Jan 04, 2017 at 07:12:11PM +0800, Ming Lei wrote: > > On Wed, Jan 4, 2017 at 5:31 PM, Chris Wilson > > wrote: > > > If the firmware load is slow and cancelled, we may call fw_load_abort() > > > twice and promptly oops on

Re: [PATCH] firmware: Prevent oops on delayed abort

2017-01-04 Thread Luis R. Rodriguez
On Wed, Jan 04, 2017 at 07:12:11PM +0800, Ming Lei wrote: > On Wed, Jan 4, 2017 at 5:31 PM, Chris Wilson wrote: > > If the firmware load is slow and cancelled, we may call fw_load_abort() > > twice and promptly oops on the second with a NULL dereference. > > > > Signed-off-by: Chris Wilson > > Cc

Re: [PATCH] firmware: Prevent oops on delayed abort

2017-01-04 Thread Ming Lei
On Wed, Jan 4, 2017 at 5:31 PM, Chris Wilson wrote: > If the firmware load is slow and cancelled, we may call fw_load_abort() > twice and promptly oops on the second with a NULL dereference. > > Signed-off-by: Chris Wilson > Cc: Ming Lei > Cc: "Luis R. Rodriguez" > Cc: Greg Kroah-Hartman > ---

[PATCH] firmware: Prevent oops on delayed abort

2017-01-04 Thread Chris Wilson
If the firmware load is slow and cancelled, we may call fw_load_abort() twice and promptly oops on the second with a NULL dereference. Signed-off-by: Chris Wilson Cc: Ming Lei Cc: "Luis R. Rodriguez" Cc: Greg Kroah-Hartman --- drivers/base/firmware_class.c | 3 +++ 1 file changed, 3 insertion