Date:2010-06-06 02:05:33 (13 years 6 months ago)
Author:Lars C.
Commit:034b40e2066e66abab1e2ce3b3f9b8fe0ca40367
Message:RTC: JZ4740: Check whether rtc structure could be allocated

Files: drivers/rtc/rtc-jz4740.c (1 diff)

Change Details

drivers/rtc/rtc-jz4740.c
219219    uint32_t scratchpad;
220220
221221    rtc = kmalloc(sizeof(*rtc), GFP_KERNEL);
222    if (!rtc)
223        return -ENOMEM;
222224
223225    rtc->irq = platform_get_irq(pdev, 0);
224226    if (rtc->irq < 0) {

Archive Download the corresponding diff file



interactive