Parent Directory | Revision Log | Patch
revision 1.3 by vizard, Sun Jun 15 21:01:30 2003 UTC | revision 1.4 by vizard, Mon Aug 11 00:06:37 2003 UTC | |
---|---|---|
# | Line 504 static int snd_ctl_elem_list(snd_card_t | Line 504 static int snd_ctl_elem_list(snd_card_t |
504 | offset = 0; | offset = 0; |
505 | } | } |
506 | up_read(&card->controls_rwsem); | up_read(&card->controls_rwsem); |
507 | if (list.used > 0 && copy_to_user(list.pids, dst, list.used * sizeof(snd_ctl_elem_id_t))) | if (list.used > 0 && copy_to_user(list.pids, dst, list.used * sizeof(snd_ctl_elem_id_t))) { |
508 | vfree(dst); | |
509 | return -EFAULT; | return -EFAULT; |
510 | } | |
511 | vfree(dst); | vfree(dst); |
512 | } else { | } else { |
513 | down_read(&card->controls_rwsem); | down_read(&card->controls_rwsem); |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |