Re: [PATCH 1/1] perf/amd: NULL return of kzalloc_node should be handled
From: Peter Zijlstra
Date: Tue Jun 10 2014 - 04:52:21 EST
On Tue, Jun 10, 2014 at 04:45:46PM +0800, Zhouyi Zhou wrote:
> Thanks Peter for reviewing, and sorry for not think it thoroughly
> before submitting.
> Is that ok that when amd_uncore_cpu_up_prepare is called from
> amd_uncore_cpu_notifier
> I return notifier_from_errno(-ENOMEM), and when
> amd_uncore_cpu_up_prepare is called from
> amd_uncore_init I immediately return -ENODEV?
That sounds about right. Thanks!
Attachment:
pgpPetfH16E_i.pgp
Description: PGP signature