[PATCH] fix the sanity check in evaluate_ptr_sub()
commitd8a87b633cf12650272f964e855ef8e2605b34de
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 10 Jul 2007 21:40:02 +0000 (10 17:40 -0400)
committerJosh Triplett <josh@freedesktop.org>
Sat, 14 Jul 2007 19:16:52 +0000 (14 12:16 -0700)
treebd2f15bf64bf2f2e2353388c493ad63b6639ec2f
parentb1bb92a1b27673988c8561b42b69e7acbc7cbaf3
[PATCH] fix the sanity check in evaluate_ptr_sub()

We are checking the wrong thing - the arguments have already
degenerated, so we won't see SYM_FN there (or SYM_ARRAY, for
that matter).  That check should be done to the target of
pointer, not to the pointer itself and it should simply check
for SYM_FN - that's what we'll get there both from decayed
functions _and_ pointers to functions.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
evaluate.c