From: Oliver Hartkopp <socketcan@hartkopp.net>
To: ajneu <ajneu1@gmail.com>, linux-can@vger.kernel.org
Subject: Re: Kernel Oops with: ip link set can0 type can
Date: Tue, 21 Jun 2016 11:17:22 +0200 [thread overview]
Message-ID: <53a1d68d-6267-e3fc-af7d-ba4d49f8124a@hartkopp.net> (raw)
In-Reply-To: <loom.20160621T105023-651@post.gmane.org>
On 06/21/2016 10:55 AM, ajneu wrote:
> ajneu <ajneu1 <at> gmail.com> writes:
>
>>
>> Hi,
>>
>> issuing the command
>> sudo ip link set can0 type can
>> I get Kernel Oops (NULL pointer dereference)
>> Command line prints: "Killed".
>>
>> [...]
>>
>> dmesg shows
>> [...]
>
>
> Question:
> How should one add and set a can device???
You do can not add a CAN device.
A 'real' CAN netdevice is detected and initialized automatically.
You only can add 'virtual' CAN devices:
ip link add dev vcan0 type vcan
But the OOPS should no occur due to your ip usage anyway :-(
This has to be fixed ...
Regards,
Oliver
next prev parent reply other threads:[~2016-06-21 9:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-21 7:57 Kernel Oops with: ip link set can0 type can ajneu
2016-06-21 8:55 ` ajneu
2016-06-21 9:17 ` Oliver Hartkopp [this message]
2016-06-21 10:19 ` Oliver Hartkopp
2016-06-21 12:25 ` ajneu
2016-06-21 12:31 ` ajneu
2016-06-21 13:28 ` Oliver Hartkopp
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=53a1d68d-6267-e3fc-af7d-ba4d49f8124a@hartkopp.net \
--to=socketcan@hartkopp.net \
--cc=ajneu1@gmail.com \
--cc=linux-can@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox