> -----Original Message----- > From: Bjørn Mork [mailto:bj...@mork.no] > Sent: Thursday, April 04, 2013 10:01 AM > To: Sarah Sharp > Cc: Aguirre Rodriguez, Sergio A; linux-usb@vger.kernel.org > Subject: Re: [PATCH] xhci: prevent from potential null pointer dereference > on failed init > > Sarah Sharp <sarah.a.sh...@linux.intel.com> writes: > > > Thanks for catching this! However, the inline comment is a bit much > > for a simple NULL pointer check. Can you remove the comment and > > resubmit this patch? > > And maybe handle failure to initialize cancel_cmd_list as well? It has the > same problem. > > But wouldn't it be better to move the list initializations to the beginning of > xhci_mem_init instead of relying on additional tests for a NULL next pointer?
Yeah, that actually makes more sense to me. I'll do that in the next revision. Regards, Sergio > > > Bjørn N�����r��y����b�X��ǧv�^�){.n�+����{������^n�r���z���h�����&���G���h�(�階�ݢj"���m������z�ޖ���f���h���~�m�