fix incorrect operator in the AUDITPIPE_SET_QLIMIT bounds check
PR: 229983 Submitted by: Aniket Pandey <aniketp@iitk.ac.in> Reported by: Aniket Pandey <aniketp@iitk.ac.in> MFC after: 1 week
This commit is contained in:
parent
1ec58d31db
commit
db248ffff1
@ -756,7 +756,7 @@ audit_pipe_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag,
|
||||
|
||||
case AUDITPIPE_SET_QLIMIT:
|
||||
/* Lockless integer write. */
|
||||
if (*(u_int *)data >= AUDIT_PIPE_QLIMIT_MIN ||
|
||||
if (*(u_int *)data >= AUDIT_PIPE_QLIMIT_MIN &&
|
||||
*(u_int *)data <= AUDIT_PIPE_QLIMIT_MAX) {
|
||||
ap->ap_qlimit = *(u_int *)data;
|
||||
error = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user