Don't cast a pointer to an int that isn't big enough.
This commit is contained in:
parent
46d9072b4a
commit
0765d4d608
@ -228,7 +228,7 @@ isa_dmastart(int flags, caddr_t addr, u_int nbytes, int chan)
|
||||
panic("isa_dmastart: channel out of range");
|
||||
|
||||
if ((chan < 4 && nbytes > (1<<16))
|
||||
|| (chan >= 4 && (nbytes > (1<<17) || (u_int)addr & 1)))
|
||||
|| (chan >= 4 && (nbytes > (1<<17) || (uintptr_t)addr & 1)))
|
||||
panic("isa_dmastart: impossible request");
|
||||
|
||||
if ((dma_inuse & (1 << chan)) == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user