Re: [PATCH] UIO: introduce sysfs_ops for map_attr_ktype

From: Greg KH
Date: Wed Feb 20 2008 - 01:50:52 EST


On Tue, Feb 19, 2008 at 01:55:05AM -0800, Brandon Philips wrote:
> 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@xxxxxxx>

Hm, I thought I could get away with just using a kobject attribute, not
a special one.

Thanks for fixing this, it was my fault.

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/