From: Dan Carpenter Date: Fri, 22 Nov 2013 07:51:47 +0000 (-0300) Subject: [media] cx18: check for allocation failure in cx18_read_eeprom() X-Git-Tag: v3.14-rc1~20^2~349 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e351bf25fa373a3de0be2141b962c5c3c27006a2;p=pandora-kernel.git [media] cx18: check for allocation failure in cx18_read_eeprom() It upsets static checkers when we don't check for allocation failure. I moved the memset() of "tv" earlier so we don't use uninitialized data on error. Fixes: 1d212cf0c2d8 ('[media] cx18: struct i2c_client is too big for stack') Signed-off-by: Dan Carpenter Acked-by: Andy Walls Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed