Re: [PATCH 3/3] staging: vme: make match() driver specific toimprove non-VME64x support

From: Manohar Vanga
Date: Tue Aug 30 2011 - 06:42:54 EST


> Here there seems to be a missing kfree(vdev), like the one after device_unregister()
> a few lines earlier.

> > + if (!err & (drv->ndev == 0))
>
> Probably you meant if (!err && drv->ndev == 0) here.

Ah darn. Will fix and resend.

> In fact one could imagine a driver that has no devices when it's
> installed (it might get them later); so I'd remove this check.

Yeah I suppose with VME64x it's possible. Will remove.

--
/manohar
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/