Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

* 'fixes' of git://github.com/hzhuang1/linux:
ARM: mmp: fix potential NULL dereference

+1 -1
+1 -1
arch/arm/mach-mmp/sram.c
··· 68 68 struct resource *res; 69 69 int ret = 0; 70 70 71 - if (!pdata && !pdata->pool_name) 71 + if (!pdata || !pdata->pool_name) 72 72 return -ENODEV; 73 73 74 74 info = kzalloc(sizeof(*info), GFP_KERNEL);