osc: Fix segmentation fault

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>