commit | 7f05b467a735aba1476d9ae8e0ae9d9d8e60066c | [log] [tgz] |
---|---|---|
author | Shannon Nelson <shannon.nelson@oracle.com> | Tue Dec 19 15:35:47 2017 -0800 |
committer | Steffen Klassert <steffen.klassert@secunet.com> | Thu Dec 21 08:17:48 2017 +0100 |
tree | fd465f66ae953e9abedce0d2374ae48b1900d3bd | |
parent | f58869c44fb3f0835dd2dabce06e5919a18655c6 [diff] |
xfrm: check for xdo_dev_state_free The current XFRM code assumes that we've implemented the xdo_dev_state_free() callback, even if it is meaningless to the driver. This patch adds a check for it before calling, as done in other APIs, to prevent a NULL function pointer kernel crash. Signed-off-by: Shannon Nelson <shannon.nelson@oracle.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>