Fix Perms

Change-Id: I97a45287cdc82b09f23404f53aa42290686541df
My Flags, My Name, My READAHEAD, & defconfigs
MSM8974: Fix build errors/warnings:
	ambiguity of ret causing -Wsequence-point error
	arguments to sizeof in memcpy/memset calls of the same pointer type
Change-Id: Ia851b2dea8e353db6231cfd1abfd535d49e03b7a