From: Hans de Goede Date: Thu, 30 Dec 2010 23:00:17 +0000 (-0300) Subject: [media] gspca_main: Update buffer flags even when user_copy fails X-Git-Tag: v2.6.38-rc2~1^2~84 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a82bc60a9abbfca0c899366ff30c592e8020520;p=pandora-kernel.git [media] gspca_main: Update buffer flags even when user_copy fails Before this patch dqbuf errors out on a failing user_copy (with user pointers) before updating the buffer flags, causing a successsfully dequeued buffer to still have the DONE flag, which means that it could no longer be re-queueud (assuming the app somehow survives the segfault). Signed-off-by: Hans de Goede Acked-by: Jean-Francois Moine Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed