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

Gabor Juhos juhosg at openwrt.org
Thu May 24 04:50:37 EDT 2012


2012.05.24. 9:48 keltezéssel, Artem Bityutskiy írta:
> 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+]
> 

Thanks!



More information about the linux-mtd mailing list