Skip to content

Commit 322c1c0

Browse files
committed
Merge tag 'topic/core-stuff-2014-07-18' of git://anongit.freedesktop.org/drm-intel into drm-next
misc core patches. * tag 'topic/core-stuff-2014-07-18' of git://anongit.freedesktop.org/drm-intel: drm: Check for connection_mutex in drm_select_eld drm/dp-mst-helper: Don't use uninitialized fields of the sideband message header drm/dp-mst-helper: Avoid reading uninitialized value drm/plane-helper: Use proper plane init function drivers/gpu/drm/drm_buffer.c: remove unnecessary null test before kfree drm: Fix function names in kerneldoc
2 parents c51f716 + 008f404 commit 322c1c0

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

drivers/gpu/drm/drm_buffer.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,7 @@ int drm_buffer_alloc(struct drm_buffer **buf, int size)
8080

8181
error_out:
8282

83-
/* Only last element can be null pointer so check for it first. */
84-
if ((*buf)->data[idx])
85-
kfree((*buf)->data[idx]);
86-
87-
for (--idx; idx >= 0; --idx)
83+
for (; idx >= 0; --idx)
8884
kfree((*buf)->data[idx]);
8985

9086
kfree(*buf);

drivers/gpu/drm/drm_crtc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3388,7 +3388,7 @@ struct drm_property *drm_property_create(struct drm_device *dev, int flags,
33883388
EXPORT_SYMBOL(drm_property_create);
33893389

33903390
/**
3391-
* drm_property_create - create a new enumeration property type
3391+
* drm_property_create_enum - create a new enumeration property type
33923392
* @dev: drm device
33933393
* @flags: flags specifying the property type
33943394
* @name: name of the property
@@ -3434,7 +3434,7 @@ struct drm_property *drm_property_create_enum(struct drm_device *dev, int flags,
34343434
EXPORT_SYMBOL(drm_property_create_enum);
34353435

34363436
/**
3437-
* drm_property_create - create a new bitmask property type
3437+
* drm_property_create_bitmask - create a new bitmask property type
34383438
* @dev: drm device
34393439
* @flags: flags specifying the property type
34403440
* @name: name of the property
@@ -3496,7 +3496,7 @@ static struct drm_property *property_create_range(struct drm_device *dev,
34963496
}
34973497

34983498
/**
3499-
* drm_property_create - create a new ranged property type
3499+
* drm_property_create_range - create a new ranged property type
35003500
* @dev: drm device
35013501
* @flags: flags specifying the property type
35023502
* @name: name of the property

drivers/gpu/drm/drm_dp_mst_topology.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,6 +1290,8 @@ static int process_single_tx_qlock(struct drm_dp_mst_topology_mgr *mgr,
12901290
int len, space, idx, tosend;
12911291
int ret;
12921292

1293+
memset(&hdr, 0, sizeof(struct drm_dp_sideband_msg_hdr));
1294+
12931295
if (txmsg->state == DRM_DP_SIDEBAND_TX_QUEUED) {
12941296
txmsg->seqno = -1;
12951297
txmsg->state = DRM_DP_SIDEBAND_TX_START_SEND;
@@ -1644,7 +1646,7 @@ int drm_dp_update_payload_part2(struct drm_dp_mst_topology_mgr *mgr)
16441646
{
16451647
struct drm_dp_mst_port *port;
16461648
int i;
1647-
int ret;
1649+
int ret = 0;
16481650
mutex_lock(&mgr->payload_lock);
16491651
for (i = 0; i < mgr->max_payloads; i++) {
16501652

drivers/gpu/drm/drm_edid.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3305,6 +3305,7 @@ struct drm_connector *drm_select_eld(struct drm_encoder *encoder,
33053305
struct drm_device *dev = encoder->dev;
33063306

33073307
WARN_ON(!mutex_is_locked(&dev->mode_config.mutex));
3308+
WARN_ON(!drm_modeset_is_locked(&dev->mode_config.connection_mutex));
33083309

33093310
list_for_each_entry(connector, &dev->mode_config.connector_list, head)
33103311
if (connector->encoder == encoder && connector->eld[0])

drivers/gpu/drm/drm_plane_helper.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,9 +335,10 @@ struct drm_plane *drm_primary_helper_create_plane(struct drm_device *dev,
335335
}
336336

337337
/* possible_crtc's will be filled in later by crtc_init */
338-
ret = drm_plane_init(dev, primary, 0, &drm_primary_helper_funcs,
339-
formats, num_formats,
340-
DRM_PLANE_TYPE_PRIMARY);
338+
ret = drm_universal_plane_init(dev, primary, 0,
339+
&drm_primary_helper_funcs,
340+
formats, num_formats,
341+
DRM_PLANE_TYPE_PRIMARY);
341342
if (ret) {
342343
kfree(primary);
343344
primary = NULL;

0 commit comments

Comments
 (0)