Subject: Re: CVS commit: syssrc
To: Jason R Thorpe <thorpej@zembu.com>
From: Allen Briggs <briggs@ninthwonder.com>
List: tech-kern
Date: 07/30/2000 21:08:11
>  > Log Message:
>  > Make sure that bus_space read/write functions that take a count will not be
>  > called if count is zero.  The smc91cxx driver, for example, may try to call
>  > bus_space_write_multi_2() with a count of 0.
> 
> Arguably, that's a bug.  The driver shouldn't be making a call like that.

I agree and I almost changed the driver, but I looked at the bus_space
man page and didn't find any prohibitions against calling the functions
with a zero count.  I figured that it would be safer (although perhaps
expose fewer bugs) to catch it in the bus_space implementation.

-allen