Merge tag 'mac80211-for-davem-2016-07-06' of git://git.kernel.org/pub/scm/linux/kerne...
[cascardo/linux.git] / drivers / gpu / drm / radeon / radeon_mn.c
index eef006c..896f2cf 100644 (file)
@@ -186,7 +186,9 @@ static struct radeon_mn *radeon_mn_get(struct radeon_device *rdev)
        struct radeon_mn *rmn;
        int r;
 
-       down_write(&mm->mmap_sem);
+       if (down_write_killable(&mm->mmap_sem))
+               return ERR_PTR(-EINTR);
+
        mutex_lock(&rdev->mn_lock);
 
        hash_for_each_possible(rdev->mn_hash, rmn, node, (unsigned long)mm)