Re: [PATCH 1/4] UIO: hold a reference to the device's owner while the device is open
From: Uwe Kleine-König
Date: Thu Apr 10 2008 - 16:12:23 EST
Uwe Kleine-König wrote:
> Otherwise the device might just disappear while /dev/uioX is being used
> which results in an Oops.
To help your understanding, without this patch I can trigger the Oops
by starting an app that does
opening and mmapping /dev/uio0
while(1);
and then in another shell do
rmmod uio_pdrv
Best regards
Uwe
--
Uwe Kleine-König, Software Engineer
Digi International GmbH Branch Breisach, Küferstrasse 8, 79206 Breisach, Germany
Tax: 315/5781/0242 / VAT: DE153662976 / Reg. Amtsgericht Dortmund HRB 13962
--
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/