diff options
-rw-r--r-- | drivers/video/fbdev/pxafb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/fbdev/pxafb.c b/drivers/video/fbdev/pxafb.c index 987eb8c4f926..33b2bb315a2a 100644 --- a/drivers/video/fbdev/pxafb.c +++ b/drivers/video/fbdev/pxafb.c | |||
@@ -2249,6 +2249,8 @@ static int pxafb_probe(struct platform_device *dev) | |||
2249 | ret = -ENOMEM; | 2249 | ret = -ENOMEM; |
2250 | pdata = dev_get_platdata(&dev->dev); | 2250 | pdata = dev_get_platdata(&dev->dev); |
2251 | inf = devm_kmalloc(&dev->dev, sizeof(*inf), GFP_KERNEL); | 2251 | inf = devm_kmalloc(&dev->dev, sizeof(*inf), GFP_KERNEL); |
2252 | if (!inf) | ||
2253 | goto failed; | ||
2252 | 2254 | ||
2253 | if (pdata) { | 2255 | if (pdata) { |
2254 | *inf = *pdata; | 2256 | *inf = *pdata; |