]> git.baikalelectronics.ru Git - kernel.git/commit
staging: most: move initialization of pointer
authorChristian Gromm <christian.gromm@microchip.com>
Tue, 22 Dec 2015 09:52:53 +0000 (10:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 01:34:58 +0000 (17:34 -0800)
commit1d5ed18899e5fa51179ecc4018dd8fef6fcecabb
treeb2bfd31caf4ba8deb8f50e302db3844c3083121d
parente321d14162c8c66b92cc3e529ebc0e883297e5e3
staging: most: move initialization of pointer

This patch makes function store_add_link initialize the pointer to an AIM
right before the channel is probed. It is needed, the AIM may already call
most_start_channel while probe_channel is still running. At this point the
pointer to the AIM must not be NULL.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/mostcore/core.c