Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/cell/spufs: Fix status attribute permission

We are registering the attribute with permission 0644 but it
doesn't have a store callback, which causes WARN_ON's during
boot. Fix the permission.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

+1 -1
+1 -1
arch/powerpc/platforms/cell/spu_base.c
··· 715 715 spu->stats.libassist); 716 716 } 717 717 718 - static DEVICE_ATTR(stat, 0644, spu_stat_show, NULL); 718 + static DEVICE_ATTR(stat, 0444, spu_stat_show, NULL); 719 719 720 720 #ifdef CONFIG_KEXEC 721 721