From: Dan Carpenter Date: Fri, 19 Sep 2014 10:56:56 +0000 (+0300) Subject: UBI: return on error in rename_volumes() X-Git-Tag: omap-for-v3.19/prcm-cleanup~74^2~7 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fbbd05799976c0611dcb229649260504b2bdef5;p=pandora-kernel.git UBI: return on error in rename_volumes() I noticed this during a code review. We are checking that the strlen() of ->name is not less than the ->name_len which the user gave us. I believe this bug is harmless but clearly we meant to return here instead of setting an error code and then not using it. Signed-off-by: Dan Carpenter Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed