From: Rémi Cardona Date: Fri, 28 Sep 2012 11:59:29 +0000 (-0300) Subject: [media] ds3000: bail out early on i2c failures during firmware load X-Git-Tag: v3.9-rc1~93^2~334 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d58f4f27282e10b25daee53045a7e839bd4178a5;p=pandora-kernel.git [media] ds3000: bail out early on i2c failures during firmware load - if kmalloc() returns NULL, we can return immediately without trying to kfree() a NULL pointer. - if i2c_transfer() fails, error out immediately instead of trying to upload the remaining bytes of the firmware. - the error code is then properly propagated down to ds3000_initfe(). Signed-off-by: Rémi Cardona Reviewed-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed