* [PATCH] device core: fix a copy-paste error
@ 2012-05-08 19:08 Alan Stern
2012-05-08 22:55 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Alan Stern @ 2012-05-08 19:08 UTC (permalink / raw)
To: Greg KH; +Cc: Kernel development list
This patch (as1552) fixes a fairly obvious copy-paste error that could
have serious consequences on architectures where sizeof(int) !=
sizeof(unsigned long).
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
CC: <stable@vger.kernel.org>
---
This just caught my eye while I was adding another macro immediately
below DEVICE_INT_ATTR.
include/linux/device.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: usb-3.4/include/linux/device.h
===================================================================
--- usb-3.4.orig/include/linux/device.h
+++ usb-3.4/include/linux/device.h
@@ -502,7 +502,7 @@ ssize_t device_store_int(struct device *
{ __ATTR(_name, _mode, device_show_ulong, device_store_ulong), &(_var) }
#define DEVICE_INT_ATTR(_name, _mode, _var) \
struct dev_ext_attribute dev_attr_##_name = \
- { __ATTR(_name, _mode, device_show_ulong, device_store_ulong), &(_var) }
+ { __ATTR(_name, _mode, device_show_int, device_store_int), &(_var) }
extern int device_create_file(struct device *device,
const struct device_attribute *entry);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] device core: fix a copy-paste error
2012-05-08 19:08 [PATCH] device core: fix a copy-paste error Alan Stern
@ 2012-05-08 22:55 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2012-05-08 22:55 UTC (permalink / raw)
To: Alan Stern; +Cc: Kernel development list
On Tue, May 08, 2012 at 03:08:45PM -0400, Alan Stern wrote:
> This patch (as1552) fixes a fairly obvious copy-paste error that could
> have serious consequences on architectures where sizeof(int) !=
> sizeof(unsigned long).
>
> Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
> CC: <stable@vger.kernel.org>
>
> ---
>
> This just caught my eye while I was adding another macro immediately
> below DEVICE_INT_ATTR.
>
>
> include/linux/device.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
This is already fixed up in my driver-core-next tree from a patch from
Michael Davidson <md@google.com>.
sorry,
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-08 22:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-08 19:08 [PATCH] device core: fix a copy-paste error Alan Stern
2012-05-08 22:55 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox