lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20060830221019.GF8907@home.fluff.org>
Date:	Wed, 30 Aug 2006 23:10:19 +0100
From:	Ben Dooks <ben-linux@...ff.org>
To:	rockeychu <rockeychu@...il.com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: [PATCH]nand_base: misused maf_id   ( for Linux 2.6.18-RC4 & RC5 )

On Wed, Aug 30, 2006 at 05:43:08AM +0000, rockeychu wrote:
> When finding manufacturer, changed maf_id not maf_idx, so result is not correct.
> 
> 
> --- linux-2.6.17_org/drivers/mtd/nand/nand_base.c     2006-08-28 
> 12:29:32.000000000 +0800
> +++ linux-2.6.17/drivers/mtd/nand/nand_base.c 2006-08-30 13:09:55.320000000 
> +0800
> @@ -1093,9 +1093,10 @@
> 
>         ret = nand_do_read_ops(mtd, from, &chip->ops);
> 
> +       *retlen = chip->ops.retlen;
> +
>         nand_release_device(mtd);
> 
> -       *retlen = chip->ops.retlen;
>         return ret;
>  }
> 
> @@ -1691,9 +1692,10 @@
> 
>         ret = nand_do_write_ops(mtd, to, &chip->ops);
> 
> +       *retlen = chip->ops.retlen;
> +
>         nand_release_device(mtd);
> 
> -       *retlen = chip->ops.retlen;
>         return ret;
>  }

best to send these to the mtd list.

> @@ -2222,7 +2224,7 @@
>         }
> 
>         /* Try to identify manufacturer */
> -       for (maf_idx = 0; nand_manuf_ids[maf_idx].id != 0x0; maf_id++) {
> +       for (maf_idx = 0; nand_manuf_ids[maf_idx].id != 0x0; maf_idx++) {
>                 if (nand_manuf_ids[maf_idx].id == *maf_id)
>                         break;
>         }

This should have already been fixed in the mtd-2.6 git.

-- 
Ben (ben@...ff.org, http://www.fluff.org/)

  'a smiley only costs 4 bytes'
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ