Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=678c857f3cffb076c36ce55dfa9fb570712cec12
Commit:     678c857f3cffb076c36ce55dfa9fb570712cec12
Parent:     d24030f0f71390b1a01796d664445352bd403269
Author:     Martin Michlmayr <[EMAIL PROTECTED]>
AuthorDate: Fri Feb 2 19:14:41 2007 +0100
Committer:  David Woodhouse <[EMAIL PROTECTED]>
CommitDate: Fri Feb 9 15:06:53 2007 +0000

    [MTD] Don't oops when the RedBoot partition table is empty
    
    This fixes a regression with the RedBoot parsing code introduced by
    commit 0b47d654089c5ce3f2ea26a4485db9bcead1e515
    
    Signed-off-by: Martin Michlmayr <[EMAIL PROTECTED]>
    Signed-off-by: David Woodhouse <[EMAIL PROTECTED]>
---
 drivers/mtd/redboot.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/redboot.c b/drivers/mtd/redboot.c
index 035cd9b..5a31f49 100644
--- a/drivers/mtd/redboot.c
+++ b/drivers/mtd/redboot.c
@@ -122,7 +122,7 @@ static int parse_redboot_partitions(struct mtd_info *master,
                                }
                        }
                        break;
-               } else {
+               } else if (buf[i].size != -1) {
                        /* re-calculate of real numslots */
                        numslots = buf[i].size / sizeof(struct fis_image_desc);
                }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to