Selaa lähdekoodia

Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/jk/spufs into merge

Paul Mackerras 16 vuotta sitten
vanhempi
commit
3f9b5d4dda
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      arch/powerpc/platforms/cell/spufs/file.c

+ 3 - 0
arch/powerpc/platforms/cell/spufs/file.c

@@ -390,6 +390,9 @@ static int spufs_ps_fault(struct vm_area_struct *vma,
 	if (offset >= ps_size)
 	if (offset >= ps_size)
 		return VM_FAULT_SIGBUS;
 		return VM_FAULT_SIGBUS;
 
 
+	if (fatal_signal_pending(current))
+		return VM_FAULT_SIGBUS;
+
 	/*
 	/*
 	 * Because we release the mmap_sem, the context may be destroyed while
 	 * Because we release the mmap_sem, the context may be destroyed while
 	 * we're in spu_wait. Grab an extra reference so it isn't destroyed
 	 * we're in spu_wait. Grab an extra reference so it isn't destroyed