From: Marek Szyprowski Date: Tue, 28 Jun 2011 11:29:02 +0000 (-0300) Subject: [media] media: vb2: fix allocation failure check X-Git-Tag: v3.0-rc7~46^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66072d4fa7cb644f1f064e290f8fddfbd8ccd478;p=pandora-kernel.git [media] media: vb2: fix allocation failure check __vb2_queue_alloc function returns the number of successfully allocated buffers. There is no point in checking if the returned value is negative. If this function returns 0, videobuf2 should just return -ENOMEM to userspace, because no driver can work without memory buffers. Reported-by: Jonathan Corbet Signed-off-by: Marek Szyprowski Signed-off-by: Kyungmin Park CC: Pawel Osciak Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed