regset: Prevent null pointer reference on readonly regsets
From: "H. Peter Anvin" <firstname.lastname@example.org>
The regset common infrastructure assumed that regsets would always
have .get and .set methods, but not necessarily .active methods.
Unfortunately people have since written regsets without .set methods.
Rather than putting in stub functions everywhere, handle regsets with
null .get or .set methods explicitly.
Signed-off-by: H. Peter Anvin <email@example.com>
Reviewed-by: Oleg Nesterov <firstname.lastname@example.org>
Acked-by: Roland McGrath <email@example.com>
Signed-off-by: Linus Torvalds <firstname.lastname@example.org>