Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 168780
b: refs/heads/master
c: e7fdc60
h: refs/heads/master
v: v3
  • Loading branch information
Roel Kluin authored and Tony Lindgren committed Nov 18, 2009
1 parent 14eb626 commit 9bf2f0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d32b20fc7dad87ac95fcc73fca3606c0db85f210
refs/heads/master: e7fdc6052e78738ce90e0bdc051f2ddf60e41324
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-omap2/gpmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ EXPORT_SYMBOL(gpmc_cs_request);
void gpmc_cs_free(int cs)
{
spin_lock(&gpmc_mem_lock);
if (cs >= GPMC_CS_NUM || !gpmc_cs_reserved(cs)) {
if (cs >= GPMC_CS_NUM || cs < 0 || !gpmc_cs_reserved(cs)) {
printk(KERN_ERR "Trying to free non-reserved GPMC CS%d\n", cs);
BUG();
spin_unlock(&gpmc_mem_lock);
Expand Down

0 comments on commit 9bf2f0a

Please sign in to comment.