diff options
author | H. Peter Anvin <[email protected]> | 2012-03-02 10:43:48 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2012-03-02 11:38:15 -0800 |
commit | c8e252586f8d5de906385d8cf6385fee289a825e (patch) | |
tree | 11bf3ac4f0d0b3961fcf1c98ee5cd1824ebd5614 /net/lapb/lapb_timer.c | |
parent | 1f033c1a6ec1a6815e9c4507d83eb20161163c37 (diff) |
regset: Prevent null pointer reference on readonly regsets
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 protected]>
Reviewed-by: Oleg Nesterov <[email protected]>
Acked-by: Roland McGrath <[email protected]>
Cc: <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions