aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorSylwester Nawrocki <[email protected]>2011-09-13 14:07:09 -0300
committerMauro Carvalho Chehab <[email protected]>2011-11-24 20:57:12 -0200
commit7acde02a5bf4d3c32cd197eb7ce2257e6a0e17b7 (patch)
treee21b2b83fb7dc1f9d4d8b65d685d59d521f4f4e4 /net/lapb/lapb_subr.c
parente067d5abdd04cbf1bed466f95682c67e2496ba42 (diff)
[media] s5p-fimc: Fix wrong pointer dereference when unregistering sensors
After i2c_unregister_device() has been called the client object can already be freed and thus using the client pointer may lead to dereferencing freed memory. Avoid this by saving the adapter pointer for further use before i2c_unregister_device() call. Signed-off-by: Sylwester Nawrocki <[email protected]> Signed-off-by: Kyungmin Park <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions