[PATCH v1 0/4] lib: hex2bin error checking

From: Mimi Zohar
Date: Tue Sep 20 2011 - 15:57:34 EST


hex2bin converts a hexadecimal string to its binary representation.

This version simply adds error checking to the existing hex2bin().
On success, hex2bin returns 0, on failure -1.

Changelog v1
- refreshed the trusted, encrypted, 'target' patches
- removed unpack_hex_byte()
- changed return code from boolean to int

Mimi Zohar (4):
lib: add error checking to hex2bin
trusted-keys: check hex2bin result
encrypted-keys: check hex2bin result
target: check hex2bin result

drivers/target/target_core_fabric_lib.c | 11 +++++++++--
include/linux/kernel.h | 2 +-
lib/hexdump.c | 15 +++++++++++----
security/keys/encrypted-keys/encrypted.c | 14 +++++++++++---
security/keys/trusted.c | 19 +++++++++++++++----
5 files changed, 47 insertions(+), 14 deletions(-)

--
1.7.3.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/