diff options
author | Luca Coelho <luciano.coelho@intel.com> | 2018-11-01 15:08:17 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2018-11-05 08:15:37 +0100 |
commit | 6f2b0d73e567844a8c8766218c4e34739643b029 (patch) | |
tree | 7890a8d11eb10a4c6347f01ac883286f55ac7142 /backport/compat/backport-4.8.c | |
parent | 74d530b6a5f248521003d2e312bca9dba23cf049 (diff) |
backports: check if genl pre_doit and post_doit are set
In the pre_doit and post_doit backports, we set the ops to our
backported version, so genetlink itself will always call it. But then
we don't check if the actual ops are set before calling them, which
causes a call to a NULL pointer. Fix this by checking if the ops are
actually set before calling them.
Fixes: ff6746638cf1 ("backports: genetlink: update completely")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'backport/compat/backport-4.8.c')
0 files changed, 0 insertions, 0 deletions