]> git.baikalelectronics.ru Git - kernel.git/commit
can: peak_pci: Fix the way channels are linked together
authorStephane Grosjean <s.grosjean@peak-system.com>
Wed, 1 Feb 2012 10:05:48 +0000 (11:05 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 2 Feb 2012 23:26:27 +0000 (00:26 +0100)
commite26b251329f40efebeb4ba1ea3c1534ccf31a8d4
tree9cc1aa1db2647819273ff7b8b74840327da534c0
parent4189ec30319dd230b594642c0e1d56e60a21a507
can: peak_pci: Fix the way channels are linked together

Change the way channels objects are linked together by peak_pci_probe()
avoiding any kernel oops when driver is removed. Side effect is that
the list is now browsed from last to first channel.

Signed-off-by: Stephane Grosjean <s.grosjean@peak-system.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/sja1000/peak_pci.c