From mboxrd@z Thu Jan 1 00:00:00 1970 From: bernd@petrovitsch.priv.at (Bernd Petrovitsch) Date: Sat, 29 Aug 2015 13:49:19 +0200 Subject: SHA-1 hash calculate in Kernel. In-Reply-To: References: Message-ID: <1440848989.2559.5.camel@thorin> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Fre, 2015-08-28 at 15:36 +0800, lx wrote: [...] > //way 2 > /* > char *plaintext = kmalloc(sizeof(char), GFP_KERNEL); > plaintext = "c"; I don't think that this line doesn't give any warning ... Kind regards, Bernd -- "I dislike type abstraction if it has no real reason. And saving on typing is not a good reason - if your typing speed is the main issue when you're coding, you're doing something seriously wrong." - Linus Torvalds