lkml.org 
[lkml]   [2011]   [Sep]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Staging: hv: vmbus: Show the modalias in /sys/bus/vmbus/devices/*/
On Fri, Sep 02, Greg KH wrote:

> On Fri, Sep 02, 2011 at 06:25:56PM +0200, Olaf Hering wrote:

> > +#define VMBUS_ALIAS_LEN ((sizeof((struct hv_vmbus_device_id *)0)->guid) * 2)

> > + char alias_name[VMBUS_ALIAS_LEN + 1];
>
> Is that too big to put on the stack? 64 bytes, right? Hm, maybe not.

16 * 2 + 1 = 33 bytes.

Olaf


\
 
 \ /
  Last update: 2011-09-02 18:41    [W:1.925 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site