summaryrefslogtreecommitdiff
path: root/drivers/net/smc9194.h
diff options
context:
space:
mode:
authorLars Ellenberg <lars.ellenberg@linbit.com>2010-12-16 14:41:26 (GMT)
committerPhilipp Reisner <philipp.reisner@linbit.com>2011-03-10 10:43:30 (GMT)
commit2265b473aecc1a6fe1f84a0ee272ba39806c2a8a (patch)
treebd58a09ad124dd37f15db23f20912049ccd067cd /drivers/net/smc9194.h
parent02851e9f00d78dbc8ded0aacbf9bf3b631d627b3 (diff)
downloadlinux-fsl-qoriq-2265b473aecc1a6fe1f84a0ee272ba39806c2a8a.tar.xz
drbd: fix potential dereference of NULL pointer
If drbd used to have crypto digest algorithms configured, then is being unconfigured (but not unloaded), it frees the algorithms, but does not reset the config. If it then is reconfigured to use the very same algorithm, it "forgot" to re-allocate the algorithms, thinking that the config has not changed in that aspect. It will then Oops on the first attempt to actually use those algorithms. Fix this by resetting the config to defaults after cleanup. Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/net/smc9194.h')
0 files changed, 0 insertions, 0 deletions