Date:2011-08-02 11:24:08 (11 years 1 month ago)
Author:Maarten ter Huurne
Commit:5bb0ffea062ed983f76089fc7ddfea20658a1b46
Message:MTD: NAND: JZ4740: Fix possible uninitialized pointer.

If CONFIG_MTD_CMDLINE_PARTS is not defined and no pdata is available,
it was possible for partition_info to be undefined.
Files: drivers/mtd/nand/jz4740_nand.c (1 diff)

Change Details

drivers/mtd/nand/jz4740_nand.c
411411    struct nand_chip *chip;
412412    struct mtd_info *mtd;
413413    struct jz_nand_platform_data *pdata = pdev->dev.platform_data;
414    struct mtd_partition *partition_info;
414    struct mtd_partition *partition_info = NULL;
415415    int num_partitions = 0;
416416    size_t chipnr, bank_idx;
417417    uint8_t nand_maf_id = 0, nand_dev_id = 0;

Archive Download the corresponding diff file



interactive