ima: skip memory allocation for empty files
commit1d91ac6213003f525ac34da5e39cbb6612d19deb
authorDmitry Kasatkin <d.kasatkin@samsung.com>
Thu, 27 Feb 2014 18:16:47 +0000 (27 20:16 +0200)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Fri, 7 Mar 2014 17:15:48 +0000 (7 12:15 -0500)
tree8182a8b6df13e506b1888fce3395b75a9aa1f23b
parente0420039b643a832231028000a5c0d7358b14f3b
ima: skip memory allocation for empty files

Memory allocation is unnecessary for empty files.
This patch calculates the hash without memory allocation.

Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
security/integrity/ima/ima_crypto.c