Re: [PATCH] libata-sff: Don't call bmdma_stop on non DMA capable controllers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



(Yeah, mmap() has taught some people about MAP_FAIL, but that's pretty unusual too.

It's so unusual, that I regularly find buggy code checking for NULL
instead of MAP_FAILED.  Just about every program I look at has it wrong
in at least one place.

Ditto for the result value from wait() -- lots of code fails to use
the fancy macros required for correct interpretation of it.

The quality of our drivers is low;

I think that's a bit harsh.  But yes, compared to core parts
of the kernel perhaps (eg. page dirty mappings: remember the recent bugfix?).

The real deal is that using zero/NULL makes it *easier* to get the code right.
And we certainly have tons more people working on drivers than anything else,
so making it *easier* for those coders to reduce the bug count is a Good Thing(tm).

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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux