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

Simple merge