regset: Prevent null pointer reference on readonly regsets
From: "H. Peter Anvin" <email@example.com>
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 <firstname.lastname@example.org>
Reviewed-by: Oleg Nesterov <email@example.com>
Acked-by: Roland McGrath <firstname.lastname@example.org>
Signed-off-by: Linus Torvalds <email@example.com>