hd-priv: include validity check