From: Jonathan Cameron Date: Wed, 15 Feb 2012 19:48:00 +0000 (+0000) Subject: staging:iio:core set the iio_dev.info pointer to null on unregister under lock. X-Git-Tag: v3.4-rc1~186^2~115 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac917a81117ce0286847666b55dd265f6cda8383;p=pandora-kernel.git staging:iio:core set the iio_dev.info pointer to null on unregister under lock. This prevents use of provider callbacks after it has been unregistered. Note that all code using this that can be called from a consumer *must* check the pointer before using and hold the info_exist_lock throughout the usage of the callbacks in info. Signed-off-by: Jonathan Cameron Acked-by: Linus Walleij Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed