Re: [PATCH] Fix dangling pointer returned by attr_get_by_subsys_id()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Aug 31, 2008 at 19:15, Alan Jenkins <alan-jenkins@xxxxxxxxxxxxxx> wrote:
> Temporary stack buffers should be allocated by caller, not callee :-).
>
>  /* handle "[$SUBSYSTEM/$KERNEL]<attribute>" lookup */
> -static int attr_get_by_subsys_id(const char *attrstr, char *devpath, size_t len, char **attr)

Ah, attr is supposed to return the position in attstr. Should be fixed now.

Thanks,
Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux