We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e4f8b7 commit 7623757Copy full SHA for 7623757
Documentation/networking/netlink_mmap.txt
@@ -274,9 +274,9 @@ This example assumes some ring parameters of the ring setup are available.
274
/* Get next frame header */
275
hdr = rx_ring + frame_offset;
276
277
- if (hdr->nm_status == NL_MMAP_STATUS_VALID)
+ if (hdr->nm_status == NL_MMAP_STATUS_VALID) {
278
/* Regular memory mapped frame */
279
- nlh = (void *hdr) + NL_MMAP_HDRLEN;
+ nlh = (void *)hdr + NL_MMAP_HDRLEN;
280
len = hdr->nm_len;
281
282
/* Release empty message immediately. May happen
0 commit comments