From: Hans de Goede Date: Sun, 9 Sep 2012 11:04:05 +0000 (-0300) Subject: [media] gspca: Fix input urb creation / destruction surrounding suspend resume X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~3^2^2~293 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36adfca94a354b10b4e36684a45e830f6817b067;p=pandora-kernel.git [media] gspca: Fix input urb creation / destruction surrounding suspend resume 1) We always re-create the input-urb on resume, so we must also always destroy it on suspend to avoid leaking it 2) If we're going to do an init_transfer, then that will destroy the urb before starting the stream (nop if there is none), and (re-)create it once the stream is started. So there is little use in creating it, if we're going to do an init_transfer immediately afterward Signed-off-by: Hans de Goede Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed