Re: [PATCH v2] xhci: fix list access before ini

2013-04-15 Thread Vladimir Murzin
:33:31PM +0400, Vladimir Murzin wrote: If for whatever reason we fall into fail path in xhci_mem_init() before bw table gets initialized we may access the uninitialized lists in xhci_mem_cleanup(). Check for bw table before traversing lists in cleanup routine. Reported-by: Sergey

Re: [PATCH v2] xhci: fix list access before ini

2013-04-13 Thread Vladimir Murzin
Ping! :) On Tue, Apr 09, 2013 at 10:33:31PM +0400, Vladimir Murzin wrote: If for whatever reason we fall into fail path in xhci_mem_init() before bw table gets initialized we may access the uninitialized lists in xhci_mem_cleanup(). Check for bw table before traversing lists in cleanup

[PATCH v2] xhci: fix list access before ini

2013-04-09 Thread Vladimir Murzin
...@gmail.com Signed-off-by: Vladimir Murzin murzi...@gmail.com --- This patch is generated across http://git.kernel.org/cgit/linux/kernel/git/sarah/xhci.git/log/?h=for-usb-linus-queue Changes since: v1 - init for cancel_cmd_list and lpm_failed lists is skipped because Sergio has

[PATCH] xhci: fix list access before init

2013-04-04 Thread Vladimir Murzin
they get initialized. The same init-fail-cleanup case is applicable to bw tables too. Fix this by moving list initialization code to the beginning of xhci_mem_init() Reported-by: Sergey Dyasly dse...@gmail.com Tested-by: Sergey Dyasly dse...@gmail.com Signed-off-by: Vladimir Murzin murzi...@gmail.com

Re: [PATCH] xhci: fix list access before init

2013-04-04 Thread Vladimir Murzin
of Sergio's patch, and never met him before :) What about picking up Sergio's patch and bw table part of this patch as separate commits? Best wishes Vladimir Murzin Sarah Sharp On Thu, Apr 04, 2013 at 08:31:26PM +0400, Vladimir Murzin wrote: Commits 9574323 xHCI: test USB2 software LPM