Re: [PATCH] FS-Cache: Add missing initialization of ret in cachefiles_write_page()

From: David Howells
Date: Thu Nov 12 2015 - 05:15:47 EST


Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> wrote:

> - int ret;
> + int ret = 0;

This isn't quite the right solution. The uninitialised error path needs to
set -ENOBUFS. Unfortunately, my compiler doesn't show a warning:-/

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