From: Tomi Valkeinen Date: Wed, 17 Dec 2014 12:34:22 +0000 (+0200) Subject: drm/omap: fix race condition with dev->obj_list X-Git-Tag: omap-for-v4.1/fixes-rc1~82^2~15^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76c4055f2c9a7ae556e96c1cadd82ee182b7d87e;p=pandora-kernel.git drm/omap: fix race condition with dev->obj_list omap_gem_objects are added to dev->obj_list in omap_gem_new, and removed in omap_gem_free_object. Unfortunately there's no locking for dev->obj_list, which eventually leads to a crash: WARNING: CPU: 1 PID: 1123 at lib/list_debug.c:59 __list_del_entry+0xa4/0xe0() list_del corruption. prev->next should be e9281344, but was ea722b84 Add a spinlock to protect dev->obj_list. Signed-off-by: Tomi Valkeinen --- Reading git-diff-tree failed