stable.vger.kernel.org archive mirror
 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
                   ` (2 more replies)
  0 siblings, 3 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
2016-06-06 17:03   ` Christoph Hellwig
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
2016-06-06 17:15     ` Greg KH
2016-06-06 17:22       ` Christoph Hellwig
2016-06-06 18:31       ` Max Gurtovoy
     [not found]     ` <CALq1K=JWPk6nPjTV0z1HwfmtnO77Nkyaqx-JTB=8JwH0UtorDA@mail.gmail.com>
2016-06-06 17:22       ` hch
2016-06-06 17:40         ` Greg KH
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;
as well as URLs for NNTP newsgroup(s).