[PATCH] cramfs: probe(): fix cdev lookup

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Wed Dec 16 08:41:55 EST 2009


Hi Peter,

On Wed, Dec 16, 2009 at 02:25:37PM +0100, Peter Korsgaard wrote:
> >>>>> "Uwe" == Uwe Kleine-König <u.kleine-koenig at pengutronix.de> writes:
> 
> Hi,
> 
>  >> > That would be sizeof("/dev/") - 1 to not count in the trailing 0.  The
>  >> 
>  >> doh! I'm out of brown paper bags.
>  Uwe> instead of sizeof("...") - 1, strlen should work.
> 
> Yes. Do you want me to send a patch replacing the '5' in strncmp /
> cdev_by_name?
I don't want you to do anything, and I don't have any authority here.  I
just wanted to point out the alternative.  IIRC Sascha already took the
patch.

Best regards
Uwe

-- 
Pengutronix e.K.                              | Uwe Kleine-König            |
Industrial Linux Solutions                    | http://www.pengutronix.de/  |




More information about the barebox mailing list