Skip to content

Commit

Permalink
Merge branch 'fixes' of git://github.com/hzhuang1/linux into fixes
Browse files Browse the repository at this point in the history
* 'fixes' of git://github.com/hzhuang1/linux:
  ARM: mmp: fix potential NULL dereference
  • Loading branch information
Arnd Bergmann committed Aug 16, 2012
2 parents 0a224c5 + c0db19d commit 8a211d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-mmp/sram.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ static int __devinit sram_probe(struct platform_device *pdev)
struct resource *res;
int ret = 0;

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

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

0 comments on commit 8a211d3

Please sign in to comment.