[PATCH] mtd: block2mtd: fix recursive call of mtd_writev

Artem Bityutskiy artem.bityutskiy at linux.intel.com
Thu May 24 03:48:39 EDT 2012


On Thu, 2012-05-24 at 00:17 +0200, Gabor Juhos wrote:
> The 'mtd_writev' interface calls the function assigned
> to the '_write' field of a given mtd device if that is
> not NULL. The block2mtd driver sets the '_writev' field
> to the 'mtd_writev' function itself and thus causes a
> endless loop.
> 
> This is caused by 1dbebd32562b3c2caeca35960e5cb00bfcc12900
> (mtd: harmonize mtd_writev usage).
> 
> Remove the assignment from the block2mtd driver to fix the
> issue.
> 
> Signed-off-by: Gabor Juhos <juhosg at openwrt.org>
> Cc: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
> Cc: stable at vger.kernel.org

Amended the "stable" tag and pushed to l2-mtd.git, thanks:

Cc: stable at kernel.org [3.3+]

-- 
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20120524/341a2fd3/attachment.sig>


More information about the linux-mtd mailing list