All of lore.kernel.org
 help / color / mirror / Atom feed
From: drozdziak1@gmail.com (Stan Drozd)
To: kernelnewbies@lists.kernelnewbies.org
Subject: My network device don't work
Date: Tue, 20 Jun 2017 15:31:29 +0200	[thread overview]
Message-ID: <20170620133128.GB1233@gmail.com> (raw)
In-Reply-To: <186270325-26e3212af6540c227a34d3cd3b5e0c56@pmq3v.m5r2.onet>

On Tue, Jun 20, 2017 at 02:32:31PM +0200, wiktoria.lewicka wrote:
> Hello.
> I write simple network device, but its don't work. Module is loading, loading, loading...
> Code:
> [...]
Hello,
"strncpy(my_netdev.name, DEV_NAME, 5)" only copies the 5 chars in "chwdp" without the null byte. You could bump it to 6
or maybe change 5 to IFNAMSIZ (the net_device.name's size) and then change the last byte to '\0' manually

  reply	other threads:[~2017-06-20 13:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-20 12:32 My network device don't work wiktoria.lewicka
2017-06-20 13:31 ` Stan Drozd [this message]
2017-06-20 14:12 ` Greg KH
2017-06-20 23:35   ` Tobin C. Harding

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170620133128.GB1233@gmail.com \
    --to=drozdziak1@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.