[PATCH] fix audit oops with invalid operator

Michael C Thompson wrote: [Tue Aug 01 2006, 02:36:36PM EDT]
> The trigger for this oops is:
> # auditctl -a exit,always -S pread64 -F 'inode<1'

Setting the err value will fix it.

Signed-off-by: Amy Griffis <amy.griffis@hp.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

authored by Amy Griffis and committed by Al Viro 5422e01a 6988434e

+2
+2
kernel/auditfilter.c
··· 442 442 case AUDIT_EQUAL: 443 443 break; 444 444 default: 445 + err = -EINVAL; 445 446 goto exit_free; 446 447 } 447 448 } ··· 580 579 case AUDIT_EQUAL: 581 580 break; 582 581 default: 582 + err = -EINVAL; 583 583 goto exit_free; 584 584 } 585 585 }