Staging: most: fix passing a potential null pointer
authorChristian Gromm <christian.gromm@microchip.com>
Tue, 28 Jul 2015 15:16:11 +0000 (17:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jul 2015 20:43:15 +0000 (13:43 -0700)
commita11442fe87d63994816cf2edde4450410df397af
treeea0edba6d8a1f118a8eaff2712b89bc85b6c833c
parent2e4c30458e31e5f6487d1393254f2ab347cfb02c
Staging: most: fix passing a potential null pointer

This patch fixes passing of a potential null pointer.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/aim-cdev/cdev.c