struct_assignment: handle unions as well
commitb82a510f696b8bd6e94c949019b22fdb1a3e49cc
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 28 Nov 2018 10:32:03 +0000 (28 13:32 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 28 Nov 2018 10:32:03 +0000 (28 13:32 +0300)
tree111c5fbd0e269ec08dd82b401a8ae013396ea022
parentd0cb1b18d5360883fe260f42722c0866bfe0abb1
struct_assignment:  handle unions as well

I was missing some union assignments.  Say you initialized a union to zero
then did a copy_from_user().  The user_data information would get set, but
smatch_extra still thought that the union members were zero and
smatch_extra information trumps user data info.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_struct_assignment.c