···2323config FEC2424 tristate "FEC ethernet controller (of ColdFire and some i.MX CPUs)"2525 depends on (M523x || M527x || M5272 || M528x || M520x || M532x || \2626- ARCH_MXC || ARCH_MXS)2727- default ARCH_MXC || ARCH_MXS if ARM2626+ ARCH_MXC || SOC_IMX28)2727+ default ARCH_MXC || SOC_IMX28 if ARM2828 select PHYLIB2929 ---help---3030 Say Y here if you want to use the built-in 10/100 Fast ethernet
···7373 err = -EINVAL;74747575 mutex_unlock(&rtc->ops_lock);7676- /* A timer might have just expired */7777- schedule_work(&rtc->irqwork);7876 return err;7977}8078EXPORT_SYMBOL_GPL(rtc_set_time);···112114 err = -EINVAL;113115114116 mutex_unlock(&rtc->ops_lock);115115- /* A timer might have just expired */116116- schedule_work(&rtc->irqwork);117117118118 return err;119119}···319323}320324EXPORT_SYMBOL_GPL(rtc_read_alarm);321325322322-static int ___rtc_set_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm)323323-{324324- int err;325325-326326- if (!rtc->ops)327327- err = -ENODEV;328328- else if (!rtc->ops->set_alarm)329329- err = -EINVAL;330330- else331331- err = rtc->ops->set_alarm(rtc->dev.parent, alarm);332332-333333- return err;334334-}335335-336326static int __rtc_set_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm)337327{338328 struct rtc_time tm;···342360 * over right here, before we set the alarm.343361 */344362345345- return ___rtc_set_alarm(rtc, alarm);363363+ if (!rtc->ops)364364+ err = -ENODEV;365365+ else if (!rtc->ops->set_alarm)366366+ err = -EINVAL;367367+ else368368+ err = rtc->ops->set_alarm(rtc->dev.parent, alarm);369369+370370+ return err;346371}347372348373int rtc_set_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm)···396407 timerqueue_add(&rtc->timerqueue, &rtc->aie_timer.node);397408 }398409 mutex_unlock(&rtc->ops_lock);399399- /* maybe that was in the past.*/400400- schedule_work(&rtc->irqwork);401410 return err;402411}403412EXPORT_SYMBOL_GPL(rtc_initialize_alarm);···763776 return 0;764777}765778766766-static void rtc_alarm_disable(struct rtc_device *rtc)767767-{768768- struct rtc_wkalrm alarm;769769- struct rtc_time tm;770770-771771- __rtc_read_time(rtc, &tm);772772-773773- alarm.time = rtc_ktime_to_tm(ktime_add(rtc_tm_to_ktime(tm),774774- ktime_set(300, 0)));775775- alarm.enabled = 0;776776-777777- ___rtc_set_alarm(rtc, &alarm);778778-}779779-780779/**781780 * rtc_timer_remove - Removes a rtc_timer from the rtc_device timerqueue782781 * @rtc rtc device···784811 struct rtc_wkalrm alarm;785812 int err;786813 next = timerqueue_getnext(&rtc->timerqueue);787787- if (!next) {788788- rtc_alarm_disable(rtc);814814+ if (!next)789815 return;790790- }791816 alarm.time = rtc_ktime_to_tm(next->expires);792817 alarm.enabled = 1;793818 err = __rtc_set_alarm(rtc, &alarm);···847876 err = __rtc_set_alarm(rtc, &alarm);848877 if (err == -ETIME)849878 goto again;850850- } else851851- rtc_alarm_disable(rtc);879879+ }852880853881 mutex_unlock(&rtc->ops_lock);854882}
+2-2
fs/cifs/connect.c
···282282 byte_count = be32_to_cpu(pTargetSMB->smb_buf_length);283283 byte_count += total_in_buf2;284284 /* don't allow buffer to overflow */285285- if (byte_count > CIFSMaxBufSize)285285+ if (byte_count > CIFSMaxBufSize + MAX_CIFS_HDR_SIZE - 4)286286 return -ENOBUFS;287287 pTargetSMB->smb_buf_length = cpu_to_be32(byte_count);288288···21222122 warned_on_ntlm = true;21232123 cERROR(1, "default security mechanism requested. The default "21242124 "security mechanism will be upgraded from ntlm to "21252125- "ntlmv2 in kernel release 3.2");21252125+ "ntlmv2 in kernel release 3.3");21262126 }21272127 ses->overrideSecFlg = volume_info->secFlg;21282128
+17-17
fs/minix/inode.c
···263263 goto out_no_root;264264 }265265266266- ret = -ENOMEM;267267- s->s_root = d_alloc_root(root_inode);268268- if (!s->s_root)269269- goto out_iput;270270-271271- if (!(s->s_flags & MS_RDONLY)) {272272- if (sbi->s_version != MINIX_V3) /* s_state is now out from V3 sb */273273- ms->s_state &= ~MINIX_VALID_FS;274274- mark_buffer_dirty(bh);275275- }276276- if (!(sbi->s_mount_state & MINIX_VALID_FS))277277- printk("MINIX-fs: mounting unchecked file system, "278278- "running fsck is recommended\n");279279- else if (sbi->s_mount_state & MINIX_ERROR_FS)280280- printk("MINIX-fs: mounting file system with errors, "281281- "running fsck is recommended\n");282282-283266 /* Apparently minix can create filesystems that allocate more blocks for284267 * the bitmaps than needed. We simply ignore that, but verify it didn't285268 * create one with not enough blocks and bail out if so.···282299 "zmap blocks allocated. Refusing to mount.\n");283300 goto out_iput;284301 }302302+303303+ ret = -ENOMEM;304304+ s->s_root = d_alloc_root(root_inode);305305+ if (!s->s_root)306306+ goto out_iput;307307+308308+ if (!(s->s_flags & MS_RDONLY)) {309309+ if (sbi->s_version != MINIX_V3) /* s_state is now out from V3 sb */310310+ ms->s_state &= ~MINIX_VALID_FS;311311+ mark_buffer_dirty(bh);312312+ }313313+ if (!(sbi->s_mount_state & MINIX_VALID_FS))314314+ printk("MINIX-fs: mounting unchecked file system, "315315+ "running fsck is recommended\n");316316+ else if (sbi->s_mount_state & MINIX_ERROR_FS)317317+ printk("MINIX-fs: mounting file system with errors, "318318+ "running fsck is recommended\n");285319286320 return 0;287321
···15401540 }1541154115421542 /* dead body doesn't have much to contribute */15431543- if (p->exit_state == EXIT_DEAD)15431543+ if (unlikely(p->exit_state == EXIT_DEAD)) {15441544+ /*15451545+ * But do not ignore this task until the tracer does15461546+ * wait_task_zombie()->do_notify_parent().15471547+ */15481548+ if (likely(!ptrace) && unlikely(ptrace_reparented(p)))15491549+ wo->notask_error = 0;15441550 return 0;15511551+ }1545155215461553 /* slay zombie? */15471554 if (p->exit_state == EXIT_ZOMBIE) {
+10-4
kernel/hung_task.c
···74747575 /*7676 * Ensure the task is not frozen.7777- * Also, when a freshly created task is scheduled once, changes7878- * its state to TASK_UNINTERRUPTIBLE without having ever been7979- * switched out once, it musn't be checked.7777+ * Also, skip vfork and any other user process that freezer should skip.8078 */8181- if (unlikely(t->flags & PF_FROZEN || !switch_count))7979+ if (unlikely(t->flags & (PF_FROZEN | PF_FREEZER_SKIP)))8080+ return;8181+8282+ /*8383+ * When a freshly created task is scheduled once, changes its state to8484+ * TASK_UNINTERRUPTIBLE without having ever been switched out once, it8585+ * musn't be checked.8686+ */8787+ if (unlikely(!switch_count))8288 return;83898490 if (switch_count != t->last_switch_count) {
+12-1
kernel/ptrace.c
···9696 */9797 if (!(child->flags & PF_EXITING) &&9898 (child->signal->flags & SIGNAL_STOP_STOPPED ||9999- child->signal->group_stop_count))9999+ child->signal->group_stop_count)) {100100 child->jobctl |= JOBCTL_STOP_PENDING;101101+102102+ /*103103+ * This is only possible if this thread was cloned by the104104+ * traced task running in the stopped group, set the signal105105+ * for the future reports.106106+ * FIXME: we should change ptrace_init_task() to handle this107107+ * case.108108+ */109109+ if (!(child->jobctl & JOBCTL_STOP_SIGMASK))110110+ child->jobctl |= SIGSTOP;111111+ }101112102113 /*103114 * If transition to TASK_STOPPED is pending or in TASK_TRACED, kick