summaryrefslogtreecommitdiff
path: root/drivers/staging/olpc_dcon
diff options
context:
space:
mode:
authorChristian Gromm <christian.gromm@microchip.com>2018-08-13 16:02:28 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-08-27 20:51:49 +0300
commitf0b4a22a48481824e124f633bbe5d3e884fc8e36 (patch)
tree650bb3cd4f3af2d39c0a9b3c3210e3cef18a05bb /drivers/staging/olpc_dcon
parent23c41ca6173da88c4acff1e353af654085ee3a0d (diff)
downloadlinux-f0b4a22a48481824e124f633bbe5d3e884fc8e36.tar.xz
staging: most: register channel device after init of struct members
This patch moves the call to device_register to the end of the channel initialization section that the devcie belongs to. It is needed to avoid NULL pointer dereferences once the device is registered with sysfs. Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/olpc_dcon')
0 files changed, 0 insertions, 0 deletions