Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4586
b: refs/heads/master
c: fb8d82a
h: refs/heads/master
v: v3
  • Loading branch information
Ben Dooks authored and Thomas Gleixner committed Jul 6, 2005
1 parent 89c88b8 commit b58b160
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: b3539219c9ea20ebf6a5ea3cc534f423a3607c41
refs/heads/master: fb8d82a865b1ff601fad8293cd6a2a1b1908545b
5 changes: 3 additions & 2 deletions trunk/drivers/mtd/nand/s3c2410.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
* 02-May-2005 BJD Fixed s3c2440 support
* 02-May-2005 BJD Reduced hwcontrol decode
* 20-Jun-2005 BJD Updated s3c2440 support, fixed timing bug
* 08-Jul-2005 BJD Fix OOPS when no platform data supplied
*
* $Id: s3c2410.c,v 1.13 2005/06/20 11:48:21 bjd Exp $
* $Id: s3c2410.c,v 1.14 2005/07/06 20:05:06 bjd Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -232,7 +233,7 @@ static void s3c2410_nand_select_chip(struct mtd_info *mtd, int chip)
if (chip == -1) {
cur |= bit;
} else {
if (chip > nmtd->set->nr_chips) {
if (nmtd->set != NULL && chip > nmtd->set->nr_chips) {
printk(KERN_ERR PFX "chip %d out of range\n", chip);
return;
}
Expand Down

0 comments on commit b58b160

Please sign in to comment.