Return EINVAL if the passed intr is out of bounds.
PR: 30857 Submitted by: David Xu <davidx@viasoft.com.cn> MFC: 1 week
This commit is contained in:
parent
bc122022f9
commit
ebe90110b6
@ -480,6 +480,7 @@ icu_setup(int intr, driver_intr_t *handler, void *arg, int flags)
|
||||
#else
|
||||
if ((u_int)intr >= ICU_LEN || intr == ICU_SLAVEID)
|
||||
#endif /* APIC_IO */
|
||||
return (EINVAL);
|
||||
if (intr_handler[intr] != isa_strayintr)
|
||||
return (EBUSY);
|
||||
|
||||
|
@ -480,6 +480,7 @@ icu_setup(int intr, driver_intr_t *handler, void *arg, int flags)
|
||||
#else
|
||||
if ((u_int)intr >= ICU_LEN || intr == ICU_SLAVEID)
|
||||
#endif /* APIC_IO */
|
||||
return (EINVAL);
|
||||
if (intr_handler[intr] != isa_strayintr)
|
||||
return (EBUSY);
|
||||
|
||||
|
@ -480,6 +480,7 @@ icu_setup(int intr, driver_intr_t *handler, void *arg, int flags)
|
||||
#else
|
||||
if ((u_int)intr >= ICU_LEN || intr == ICU_SLAVEID)
|
||||
#endif /* APIC_IO */
|
||||
return (EINVAL);
|
||||
if (intr_handler[intr] != isa_strayintr)
|
||||
return (EBUSY);
|
||||
|
||||
|
@ -480,6 +480,7 @@ icu_setup(int intr, driver_intr_t *handler, void *arg, int flags)
|
||||
#else
|
||||
if ((u_int)intr >= ICU_LEN || intr == ICU_SLAVEID)
|
||||
#endif /* APIC_IO */
|
||||
return (EINVAL);
|
||||
if (intr_handler[intr] != isa_strayintr)
|
||||
return (EBUSY);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user