diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /drivers/char/mmtimer.c | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'drivers/char/mmtimer.c')
-rw-r--r-- | drivers/char/mmtimer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/mmtimer.c b/drivers/char/mmtimer.c index 3d6c0671e99..33dc2298af7 100644 --- a/drivers/char/mmtimer.c +++ b/drivers/char/mmtimer.c | |||
@@ -826,7 +826,7 @@ static int __init mmtimer_init(void) | |||
826 | 826 | ||
827 | /* Allocate list of node ptrs to mmtimer_t's */ | 827 | /* Allocate list of node ptrs to mmtimer_t's */ |
828 | timers = kzalloc(sizeof(struct mmtimer_node)*maxn, GFP_KERNEL); | 828 | timers = kzalloc(sizeof(struct mmtimer_node)*maxn, GFP_KERNEL); |
829 | if (!timers) { | 829 | if (timers == NULL) { |
830 | printk(KERN_ERR "%s: failed to allocate memory for device\n", | 830 | printk(KERN_ERR "%s: failed to allocate memory for device\n", |
831 | MMTIMER_NAME); | 831 | MMTIMER_NAME); |
832 | goto out3; | 832 | goto out3; |
@@ -848,6 +848,7 @@ static int __init mmtimer_init(void) | |||
848 | return 0; | 848 | return 0; |
849 | 849 | ||
850 | out3: | 850 | out3: |
851 | kfree(timers); | ||
851 | misc_deregister(&mmtimer_miscdev); | 852 | misc_deregister(&mmtimer_miscdev); |
852 | out2: | 853 | out2: |
853 | free_irq(SGI_MMTIMER_VECTOR, NULL); | 854 | free_irq(SGI_MMTIMER_VECTOR, NULL); |