Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a211d36 authored by Arnd Bergmann's avatar Arnd Bergmann
Browse files

Merge branch 'fixes' of git://github.com/hzhuang1/linux into fixes

* 'fixes' of git://github.com/hzhuang1/linux:
  ARM: mmp: fix potential NULL dereference
parents 0a224c51 c0db19da
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -68,7 +68,7 @@ static int __devinit sram_probe(struct platform_device *pdev)
	struct resource *res;
	struct resource *res;
	int ret = 0;
	int ret = 0;


	if (!pdata && !pdata->pool_name)
	if (!pdata || !pdata->pool_name)
		return -ENODEV;
		return -ENODEV;


	info = kzalloc(sizeof(*info), GFP_KERNEL);
	info = kzalloc(sizeof(*info), GFP_KERNEL);