From: Cyril Roelandt Date: Fri, 16 Nov 2012 21:17:01 +0000 (-0300) Subject: [media] staging/media/solo6x10/v4l2-enc.c: fix error-handling X-Git-Tag: v3.9-rc1~93^2~400 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb412a8da82233af001d13c28fc54f25a2001aef;p=pandora-kernel.git [media] staging/media/solo6x10/v4l2-enc.c: fix error-handling The return values of copy_to_user() and copy_from_user() cannot be negative. Found using the following semantich patch: @exists@ identifier ret; statement S; expression E; @@ ( * ret = copy_to_user(...); | * ret = copy_from_user(...); ) ... when != ret = E when != if (ret) { <+... ret = E; ...+> } * if (ret < 0) S Signed-off-by: Cyril Roelandt Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed