From: Felipe Contreras Date: Sat, 12 Mar 2011 00:29:06 +0000 (-0600) Subject: staging: tidspbridge: protect dmm_map properly X-Git-Tag: v2.6.39-rc1~469^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab42abf33a3efdf754710a0a513c00c40854cd61;p=pandora-kernel.git staging: tidspbridge: protect dmm_map properly We need to protect not only the dmm_map list, but the individual map_obj's, otherwise, we might be building the scatter-gather list with garbage. So, use the existing proc_lock for that. I observed race conditions which caused kernel panics while running stress tests, also, Tuomas Kulve found it happening quite often in Gumstix Over. This patch fixes those. Cc: Tuomas Kulve Signed-off-by: Felipe Contreras Signed-off-by: Omar Ramirez Luna Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed