On Thu, Jun 10, 2010 at 11:10 AM, Anton Vorontsov
<cbouatmai...@gmail.com> wrote:
> On Thu, Jun 10, 2010 at 10:30:26AM -0600, Grant Likely wrote:
> [...]
>>       res = kzalloc((sizeof(*res) * num_res), GFP_KERNEL);
>>       if (!res) {
>>               kfree(ofdev);  /* or goto an error unwind label */
>>               return NULL;
>>       }
>>       res = (struct resource *)&ofdev[1];
>
> You mean ofdev->resource = res; ?

Yeah, cut-and-paste error.

g.
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to