]> git.proxmox.com Git - mirror_zfs.git/commit
Add realloc() success check in zpool_history_unpack()
authorGeorge Melikov <mail@gmelikov.ru>
Fri, 27 Jan 2017 19:10:10 +0000 (22:10 +0300)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 27 Jan 2017 19:10:10 +0000 (11:10 -0800)
commit687e612f9a56763d82c78ed75656896ce9cace17
tree9bf0d6679c805e00d0dd437d535bdcecd932e883
parent933ec999511f3d29de005bfa8966ae007b161c0f
Add realloc() success check in zpool_history_unpack()

Correctly handle the unlikely case where the memory buffer cannot be resized.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Signed-off-by: George Melikov <mail@gmelikov.ru>
Closes #5575
lib/libzfs/libzfs_pool.c