From: Ezequiel Garcia Date: Mon, 17 Sep 2012 17:59:30 +0000 (-0300) Subject: [media] videobuf2-core: Replace BUG_ON and return an error at vb2_queue_init() X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~3^2^2~102 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=896f38f582730a19eb49677105b4fe4c0270b82e;p=pandora-kernel.git [media] videobuf2-core: Replace BUG_ON and return an error at vb2_queue_init() This replaces BUG_ON() calls with WARN_ON(), and returns EINVAL if some parameter is NULL, as suggested by Jonathan and Mauro. The BUG_ON() call is too drastic to be used in this case. See the full discussion here: http://www.spinics.net/lists/linux-media/msg52462.html Signed-off-by: Ezequiel Garcia Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed