diff for duplicates of <1453282570.2521.130.camel@linux.intel.com> diff --git a/a/1.txt b/N1/1.txt index 94760c2..1d27e4a 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -2,7 +2,7 @@ On Wed, 2016-01-20 at 14:49 +0800, Yankejian (Hackim Yim) wrote: > > > + > > > > > > + snprintf(ae_dev->name, AE_NAME_SIZE, "%s%d", > > > > > > DSAF_DEVICE_NAME, -> > > > > > + ?(int)atomic_inc_return(&id)); +> > > > > > + (int)atomic_inc_return(&id)); > > If you bind/unbind device enough times you may get an overflow and > > end > > up with name of existing device (if you have 1+ of them in the @@ -19,5 +19,10 @@ AFAIR it's designed in a way you don't need to do any additional locking or synchronization. -- -Andy Shevchenko <andriy.shevchenko@linux.intel.com> +Andy Shevchenko <andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> Intel Finland Oy + +-- +To unsubscribe from this list: send the line "unsubscribe devicetree" in +the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org +More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/a/content_digest b/N1/content_digest index d9c2dad..bea977a 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -2,17 +2,38 @@ "ref\056970F48.9060504@huawei.com\0" "ref\01452764635.2521.28.camel@linux.intel.com\0" "ref\0569F2DEC.9040209@huawei.com\0" - "From\0andriy.shevchenko@linux.intel.com (Andy Shevchenko)\0" - "Subject\0[PATCH v2 next-next] net: hns: enet specifies a reference to dsaf\0" + "ref\0569F2DEC.9040209-hv44wF8Li93QT0dZR+AlfA@public.gmane.org\0" + "From\0Andy Shevchenko <andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>\0" + "Subject\0Re: [PATCH v2 next-next] net: hns: enet specifies a reference to dsaf\0" "Date\0Wed, 20 Jan 2016 11:36:10 +0200\0" - "To\0linux-arm-kernel@lists.infradead.org\0" + "To\0Yankejian (Hackim Yim) <yankejian-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>" + Yisen Zhuang <Yisen.zhuang-hv44wF8Li93QT0dZR+AlfA@public.gmane.org> + davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org + robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org + pawel.moll-5wv7dgnIgG8@public.gmane.org + mark.rutland-5wv7dgnIgG8@public.gmane.org + ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org + galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org + catalin.marinas-5wv7dgnIgG8@public.gmane.org + will.deacon-5wv7dgnIgG8@public.gmane.org + huangdaode-C8/M+/jPZTeaMJb+Lgu22Q@public.gmane.org + liguozhu-hv44wF8Li93QT0dZR+AlfA@public.gmane.org + arnd-r2nGTMty4D4@public.gmane.org + fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org + salil.mehta-hv44wF8Li93QT0dZR+AlfA@public.gmane.org + " lisheng011-hv44wF8Li93QT0dZR+AlfA@public.gmane.org\0" + "Cc\0devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" + netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org + linuxarm-hv44wF8Li93QT0dZR+AlfA@public.gmane.org + linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org + " linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org\0" "\00:1\0" "b\0" "On Wed, 2016-01-20 at 14:49 +0800, Yankejian (Hackim Yim) wrote:\n" "> > > +\n" "> > > > > > +\tsnprintf(ae_dev->name, AE_NAME_SIZE, \"%s%d\",\n" "> > > > > > DSAF_DEVICE_NAME,\n" - "> > > > > > +\t\t?(int)atomic_inc_return(&id));\n" + "> > > > > > +\t\t\302\240(int)atomic_inc_return(&id));\n" "> > If you bind/unbind device enough times you may get an overflow and\n" "> > end\n" "> > up with name of existing device (if you have 1+ of them in the\n" @@ -29,7 +50,12 @@ "locking or synchronization.\n" "\n" "-- \n" - "Andy Shevchenko <andriy.shevchenko@linux.intel.com>\n" - Intel Finland Oy + "Andy Shevchenko <andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>\n" + "Intel Finland Oy\n" + "\n" + "--\n" + "To unsubscribe from this list: send the line \"unsubscribe devicetree\" in\n" + "the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org\n" + More majordomo info at http://vger.kernel.org/majordomo-info.html -2051fa91ef2347d6c7eb2192da26995e411f34b860155d6725bdb8528de90565 +48388e047bac43e0d58ccfd906fbc5a5c3a88b3b1e04cea96598f79e461ea29c
diff --git a/a/1.txt b/N2/1.txt index 94760c2..c68a139 100644 --- a/a/1.txt +++ b/N2/1.txt @@ -2,7 +2,7 @@ On Wed, 2016-01-20 at 14:49 +0800, Yankejian (Hackim Yim) wrote: > > > + > > > > > > + snprintf(ae_dev->name, AE_NAME_SIZE, "%s%d", > > > > > > DSAF_DEVICE_NAME, -> > > > > > + ?(int)atomic_inc_return(&id)); +> > > > > > + (int)atomic_inc_return(&id)); > > If you bind/unbind device enough times you may get an overflow and > > end > > up with name of existing device (if you have 1+ of them in the diff --git a/a/content_digest b/N2/content_digest index d9c2dad..b430448 100644 --- a/a/content_digest +++ b/N2/content_digest @@ -2,17 +2,37 @@ "ref\056970F48.9060504@huawei.com\0" "ref\01452764635.2521.28.camel@linux.intel.com\0" "ref\0569F2DEC.9040209@huawei.com\0" - "From\0andriy.shevchenko@linux.intel.com (Andy Shevchenko)\0" - "Subject\0[PATCH v2 next-next] net: hns: enet specifies a reference to dsaf\0" + "From\0Andy Shevchenko <andriy.shevchenko@linux.intel.com>\0" + "Subject\0Re: [PATCH v2 next-next] net: hns: enet specifies a reference to dsaf\0" "Date\0Wed, 20 Jan 2016 11:36:10 +0200\0" - "To\0linux-arm-kernel@lists.infradead.org\0" + "To\0Yankejian (Hackim Yim) <yankejian@huawei.com>" + Yisen Zhuang <Yisen.zhuang@huawei.com> + davem@davemloft.net + robh+dt@kernel.org + pawel.moll@arm.com + mark.rutland@arm.com + ijc+devicetree@hellion.org.uk + galak@codeaurora.org + catalin.marinas@arm.com + will.deacon@arm.com + huangdaode@hisilicon.com + liguozhu@huawei.com + arnd@arndb.de + fengguang.wu@intel.com + salil.mehta@huawei.com + " lisheng011@huawei.com\0" + "Cc\0devicetree@vger.kernel.org" + netdev@vger.kernel.org + linuxarm@huawei.com + linux-kernel@vger.kernel.org + " linux-arm-kernel@lists.infradead.org\0" "\00:1\0" "b\0" "On Wed, 2016-01-20 at 14:49 +0800, Yankejian (Hackim Yim) wrote:\n" "> > > +\n" "> > > > > > +\tsnprintf(ae_dev->name, AE_NAME_SIZE, \"%s%d\",\n" "> > > > > > DSAF_DEVICE_NAME,\n" - "> > > > > > +\t\t?(int)atomic_inc_return(&id));\n" + "> > > > > > +\t\t\302\240(int)atomic_inc_return(&id));\n" "> > If you bind/unbind device enough times you may get an overflow and\n" "> > end\n" "> > up with name of existing device (if you have 1+ of them in the\n" @@ -32,4 +52,4 @@ "Andy Shevchenko <andriy.shevchenko@linux.intel.com>\n" Intel Finland Oy -2051fa91ef2347d6c7eb2192da26995e411f34b860155d6725bdb8528de90565 +373d752a2c17ab5c7edc926cdf0064ed65939e9e58ebb65a65a450546cdfd07f
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.