From: Chris Rankin Date: Sat, 20 Aug 2011 11:28:17 +0000 (-0300) Subject: [media] em28xx: clean up resources should init fail X-Git-Tag: v3.2-rc1~112^2~257 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c03e38b34dcfcdfa2f10cf984995a48f030f039;p=pandora-kernel.git [media] em28xx: clean up resources should init fail This patch ensures that the em28xx_init_dev() function cleans up after itself, in the event that it fails. This isimportant because the struct em28xx will be deallocated if em28xx_init_dev() returns an error. [mchehab@redhat.com: Fix merge conflicts and simplify the goto labels] Signed-off-by: Chris Rankin Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed