~ubuntu-branches/ubuntu/precise/alsa-driver/precise

« back to all changes in this revision

Viewing changes to alsa-kernel/isa/sb/emu8000_pcm.c

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2011-02-21 18:06:40 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20110221180640-a8p2yxtvgf7xbxub
Tags: 1.0.24+dfsg-0ubuntu1
* New upstream release
* Refreshed patches:
  - distinguish_kernel_makefile_and_source_dirs.patch
  - debian_dfsg_configure.patch
* debian/control: Update Vcs-bzr field to point to new branch location

Show diffs side-by-side

added added

removed removed

Lines of Context:
433
433
        while (count > 0) {
434
434
                unsigned short sval;
435
435
                CHECK_SCHEDULER();
436
 
                get_user(sval, buf);
 
436
                if (get_user(sval, buf))
 
437
                        return -EFAULT;
437
438
                EMU8000_SMLD_WRITE(emu, sval);
438
439
                buf++;
439
440
                count--;
525
526
        while (count-- > 0) {
526
527
                unsigned short sval;
527
528
                CHECK_SCHEDULER();
528
 
                get_user(sval, buf);
 
529
                if (get_user(sval, buf))
 
530
                        return -EFAULT;
529
531
                EMU8000_SMLD_WRITE(emu, sval);
530
532
                buf++;
531
533
                if (rec->voices > 1) {
532
534
                        CHECK_SCHEDULER();
533
 
                        get_user(sval, buf);
 
535
                        if (get_user(sval, buf))
 
536
                                return -EFAULT;
534
537
                        EMU8000_SMRD_WRITE(emu, sval);
535
538
                        buf++;
536
539
                }