]> git.baikalelectronics.ru Git - kernel.git/commit
UIO: fix Greg's stupid changes
authorBrandon Philips <brandon@ifup.org>
Tue, 19 Feb 2008 09:55:05 +0000 (01:55 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 21 Feb 2008 23:27:07 +0000 (15:27 -0800)
commit2b7c7b14168ba2b92a6b7e3388f8bc67f9f12f18
tree5b0e9e6a543ae3911ddba263a64864d05e14e235
parent5bd16beab389d9179c682f3419ea17b5af977000
UIO: fix Greg's stupid changes

This fixes two bugs with UIO that cropped up recently in -rc1

1) WARNING: at fs/sysfs/file.c:334 sysfs_open_file when trying to open
   a map addr/size file - complaining about missing sysfs_ops for ktype

2) Permission denied when reading uio/uio0/maps/map0/{addr,size} when
   files are mode S_IRUGO

Also fix a typo: attr_attribute -> addr_attribute

Signed-off-by: Brandon Philips <bphilips@suse.de>
Signed-off-by: Hans J. Koch <hjk@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/uio/uio.c