These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / media / radio / si4713 / si4713.c
index e9d03ac..0b04b56 100644 (file)
@@ -1609,8 +1609,10 @@ static int si4713_probe(struct i2c_client *client,
                return 0;
 
        si4713_pdev = platform_device_alloc("radio-si4713", -1);
-       if (!si4713_pdev)
+       if (!si4713_pdev) {
+               rval = -ENOMEM;
                goto put_main_pdev;
+       }
 
        si4713_pdev_pdata.subdev = client;
        rval = platform_device_add_data(si4713_pdev, &si4713_pdev_pdata,