lkml.org 
[lkml]   [2007]   [Jan]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] libata-sff: Don't call bmdma_stop on non DMA capable controllers
> (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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-01-26 16:33    [W:1.560 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site