]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - sound/soc/ux500/ux500_msp_i2s.c
Merge tag 'sound-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
[karo-tx-linux.git] / sound / soc / ux500 / ux500_msp_i2s.c
index e5c79ca425183e47cdf1a255cd1c2ef237dced18..b7c996e77570bd527a0a92fd904276a40c44cd2b 100644 (file)
@@ -689,6 +689,8 @@ int ux500_msp_i2s_init_msp(struct platform_device *pdev,
 
        *msp_p = devm_kzalloc(&pdev->dev, sizeof(struct ux500_msp), GFP_KERNEL);
        msp = *msp_p;
+       if (!msp)
+               return -ENOMEM;
 
        if (np) {
                if (!platform_data) {