correct typo that was a noop on 32-bit machines but a bug on 64-bit machines

Submitted by:	phk
This commit is contained in:
Sam Leffler 2009-09-07 16:08:21 +00:00
parent e72ae6eafd
commit 518de5f837

View file

@ -1452,7 +1452,7 @@ ath_hal_gethangstate(struct ath_hal *ah, uint32_t mask, uint32_t *hangs)
uint32_t rsize;
void *sp;
if (!ath_hal_getdiagstate(ah, 32, &mask, sizeof(&mask), &sp, &rsize))
if (!ath_hal_getdiagstate(ah, 32, &mask, sizeof(mask), &sp, &rsize))
return 0;
KASSERT(rsize == sizeof(uint32_t), ("resultsize %u", rsize));
*hangs = *(uint32_t *)sp;