Messages in this thread | | | Date | Tue, 10 Jun 2014 16:45:46 +0800 | Subject | Re: [PATCH 1/1] perf/amd: NULL return of kzalloc_node should be handled | From | Zhouyi Zhou <> |
| |
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?
On Tue, Jun 10, 2014 at 4:22 PM, Peter Zijlstra <peterz@infradead.org> wrote: > On Tue, Jun 10, 2014 at 03:37:38PM +0800, Zhouyi Zhou wrote: > > Less typing more thinking, this is wrong. You should fail when the > allocation fails.
| |