From: Mauro Carvalho Chehab Date: Mon, 2 Feb 2015 12:52:26 +0000 (-0200) Subject: [media] cx231xx: don't use dev it not allocated X-Git-Tag: fixes-v4.0-rc1~147^2~117 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5603a943d11cd4c74e90fdd68296ffdc8f6749c;p=pandora-kernel.git [media] cx231xx: don't use dev it not allocated changeset 5eeb3014827f added a fixup at the error check code. However, it introduced a new error: drivers/media/usb/cx231xx/cx231xx-cards.c:1586 cx231xx_usb_probe() error: we previously assumed 'dev' could be null (see line 1430) This happens when dev = kmalloc() fails. So, instead of relying on it to succeed, just change the parameter of clear_bit() from 'dev->devno' to 'nr'. Cc: Alexey Khoroshilov Cc: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed