Howto pass pointer to char parameter to kernel via copy_to_user()

by Danke Xie » Wed, 21 Jul 2010 04:25:56 GMT


Sponsored Links
 Hi Dwi,

I couldn't really figure out what is being done in the code. But I
think I noticed a reason why the call might fail (though not 100%
sure). You allocated one byte with kmalloc, which is sizeof(char), but
you would be copying 4 bytes into the area, that is sizeof(tmp). I
think that's why you got a seg fault. Do you think so?

Regards,
Danke




-- 



Other Threads

1. why my GPS always unavailable?

i try to use GPS Tracker, but it says my GPS always unavailable, i
turned on gps in settings.
--~--~---------~--~----~------------~-------~--~----~

2. variety of site for u

JAPAN CELEBRITIES 4U

*
<http://japancelebrities.blogspot.com/>*

*MUSIC BUSINESS COACHING 4U <http://music-business-coaching.blogspot.com/>*

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. WebView and JavaScript functionality

4. Are ratings and number of installs wiped on version update?

5. Managing the activity history stack

6. GPS Failures

7. Detecting if an Activity is being displayed or not