From: nibble.max Date: Thu, 23 Oct 2014 13:36:49 +0000 (-0300) Subject: [media] m88ts2022: return the err code in its probe function when error occurs X-Git-Tag: omap-for-v3.19/fixes-rc1~133^2~259 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4954578efb5fd91dd6432ecf7f04ba1b82a60693;p=pandora-kernel.git [media] m88ts2022: return the err code in its probe function when error occurs if "chip_id" is wrong or "dev->cfg.clock_out" is invalid, the i2c model is still loaded. It will cause "kernel NULL pointer dereference" oops when the i2c model remove. returning the err code will prevent the i2c model load. Signed-off-by: Nibble Max Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed