~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to sound/sound_firmware.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
                printk(KERN_INFO "Unable to load '%s'.\n", fn);
20
20
                return 0;
21
21
        }
22
 
        l = filp->f_path.dentry->d_inode->i_size;
 
22
        l = i_size_read(filp->f_path.dentry->d_inode);
23
23
        if (l <= 0 || l > 131072)
24
24
        {
25
25
                printk(KERN_INFO "Invalid firmware '%s'\n", fn);