This patch fix a possible null pointer dereference exception because of a missing null check on cdev->config