public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] fix ib_device_cap_flags bit curruption
@ 2016-06-06 16:34 Max Gurtovoy
  2016-06-06 16:34 ` [PATCH v3 1/2] IB/core: Fix bit curruption in ib_device_cap_flags structure Max Gurtovoy
       [not found] ` <1465230880-25953-1-git-send-email-maxg-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
  0 siblings, 2 replies; 12+ messages in thread
From: Max Gurtovoy @ 2016-06-06 16:34 UTC (permalink / raw)
  To: robert, matanb, leon, sagi, linux-rdma; +Cc: stable, Max Gurtovoy

This patch set fixes a bit corruption caused by expanding ib_device_cap_flags
enum to 64 bits, that caused a sign extension.
After many discussions regarding the solution, we decided on minimal fix in the
first stage.
Later on, we'll align all the caps enum to BIT/BIT_ULL macros as GKH recommended.
The addition in this vesion is the alignment of the casting method.


Max Gurtovoy (2):
  IB/core: Fix bit curruption in ib_device_cap_flags structure
  IB/core: Align casting method of ib_device_cap_flags enumerations to
    ULL

 include/rdma/ib_verbs.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-06-07 12:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-06 16:34 [PATCH v3 0/2] fix ib_device_cap_flags bit curruption Max Gurtovoy
2016-06-06 16:34 ` [PATCH v3 1/2] IB/core: Fix bit curruption in ib_device_cap_flags structure Max Gurtovoy
     [not found]   ` <1465230880-25953-2-git-send-email-maxg-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2016-06-06 17:03     ` Christoph Hellwig
     [not found] ` <1465230880-25953-1-git-send-email-maxg-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2016-06-06 16:34   ` [PATCH v3 2/2] IB/core: Align casting method of ib_device_cap_flags enumerations to ULL Max Gurtovoy
2016-06-06 17:04     ` Christoph Hellwig
     [not found]       ` <20160606170413.GB28622-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2016-06-06 17:15         ` Greg KH
     [not found]           ` <20160606171543.GA14882-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2016-06-06 17:22             ` Christoph Hellwig
2016-06-06 18:31             ` Max Gurtovoy
     [not found]       ` <CALq1K=JWPk6nPjTV0z1HwfmtnO77Nkyaqx-JTB=8JwH0UtorDA@mail.gmail.com>
     [not found]         ` <CALq1K=JWPk6nPjTV0z1HwfmtnO77Nkyaqx-JTB=8JwH0UtorDA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-06-06 17:22           ` hch
2016-06-06 17:40             ` Greg KH
     [not found]               ` <20160606174011.GB24836-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2016-06-06 17:45                 ` Bart Van Assche
2016-06-07 12:00   ` [PATCH v3 0/2] fix ib_device_cap_flags bit curruption Doug Ledford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox