On 20/04/18 14:52, staskins@xxxxxxxxxx wrote:
On 04/20/18 13:25, Juergen Gross wrote:Then you should size the array via XENVIF_FI_MAX.
On 20/04/18 12:47, Stanislav Kinsburskii wrote:Well, it works in the way one adds a var to enum (which is used as a key
+ÂÂÂ for (fi = 0; fi < XENVIF_FI_MAX; fi++) {How does this work? xenvif_fi_names[] is an empty array and this is the
+ÂÂÂÂÂÂÂ vfi->faults[fi] = xen_fi_dir_add(vfi->dir,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ xenvif_fi_names[fi]);
only reference to it. Who is allocating the memory for that array?
later) and a corresponding string into the array (which is used as a
name for the fault directory in sysfs).