freebsd-current
[Prev] Thread [Next] | [Prev] Date [Next]
Re: [PATCH]: if (cond); foo() in firewire Adrian Chadd Mon Jun 22 07:00:30 2009
2009/6/21 Roman Divacky <[EMAIL PROTECTED]>:
> hi
>
> is this patch correct? may I commit it?
>
> Index: ../../../dev/firewire/fwdev.c
> ===================================================================
> --- ../../../dev/firewire/fwdev.c (revision 194573)
> +++ ../../../dev/firewire/fwdev.c (working copy)
> @@ -443,7 +443,7 @@
> xfer->send.pay_len = uio->uio_resid;
> if (uio->uio_resid > 0) {
> if ((err = uiomove((caddr_t)&xfer->send.payload[0],
> - uio->uio_resid, uio)));
> + uio->uio_resid, uio)))
> goto out;
> }
>
>
> another bug found by the "useless warnings in clang" ;)
Is clang also evaluating all subsequent execution paths to tell you
what the change in program flow is? :)
I hate to be the harbinger of evilness, but I'd at least attempt a
cursory glance at the code to make sure subsequent code is doing the
right thing. (It certainly looks like a vanilla userland transfer!)
2c,
Adrian
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"
- [PATCH]: if (cond); foo() in firewire Roman Divacky
- Re: [PATCH]: if (cond); foo() in firewire Gary Jennejohn
- Re: [PATCH]: if (cond); foo() in firewire Adrian Chadd <=
- Re: [PATCH]: if (cond); foo() in firewire Steve Kargl
- Re: [PATCH]: if (cond); foo() in firewire Andriy Gapon
- Re: [PATCH]: if (cond); foo() in firewire Adrian Chadd
- Re: [PATCH]: if (cond); foo() in firewire Andriy Gapon
- Re: [PATCH]: if (cond); foo() in firewire Roman Divacky
Re: [PATCH]: if (cond); foo() in firewire Jung-uk Kim